96 references to UseReflection
System.Xml (96)
System\Xml\Serialization\XmlSerializationReader.cs (33)
2036bool choiceUseReflection = mapping.ChoiceIdentifier.Mapping.TypeDesc.UseReflection; 2271Writer.Write(RaCodeGen.GetStringForTypeof(mapping.TypeDesc.CSharpName,mapping.TypeDesc.UseReflection)); 2478if (mappings[i].TypeDesc.IsOptionalValue && mappings[i].TypeDesc.BaseTypeDesc.UseReflection) { 2482Writer.Write(RaCodeGen.GetStringForCreateInstance(mappings[i].TypeDesc.CSharpName, mappings[i].TypeDesc.UseReflection, false, false)); 2582bool useReflection = td.UseReflection; 2584bool arrayElementUseReflection = td.ArrayElementTypeDesc == null?false:td.ArrayElementTypeDesc.UseReflection; 2751if (!mapping.TypeDesc.UseReflection){ 2792bool useReflection = mapping.TypeDesc.UseReflection; 2878if (derived.TypeDesc.UseReflection && isTypedReturn) 2931if (td.UseReflection){ 2941Writer.Write(RaCodeGen.GetStringForCreateInstance(fullTypeName, td.UseReflection, false, false)); 2959bool useReflection = nullableMapping.BaseMapping.TypeDesc.UseReflection; 3009bool useReflection = structMapping.TypeDesc.UseReflection; 3193bool useReflection = structMapping.TypeDesc.UseReflection; 3260if (anyFixups) WriteFixupMethod(fixupMethodName, members, structMapping.TypeDesc.CSharpName, structMapping.TypeDesc.UseReflection, true, "o"); 3321bool useReflection = typeDesc.UseReflection; 3342Writer.Write(RaCodeGen.GetStringForCreateInstance(typeDesc.CSharpName, typeDesc.UseReflection, typeDesc.CannotNew, true)); 3372bool useReflection = td.UseReflection; 3661bool useReflection = typeDesc.UseReflection; 3928Writer.Write(RaCodeGen.GetStringForTypeof(td.CSharpName, td.UseReflection)); 3931Writer.Write(RaCodeGen.GetStringForTypeof(e.Mapping.TypeDesc.CSharpName, e.Mapping.TypeDesc.UseReflection)); 3961Writer.Write(RaCodeGen.GetStringForCreateInstance(e.Mapping.TypeDesc.CSharpName, e.Mapping.TypeDesc.UseReflection, false, true, "(" + td.CSharpName + ")" + checkTypeSource)); 4038bool useReflection = typeDesc.UseReflection; 4041bool arrayUseReflection = typeDesc.ArrayElementTypeDesc.UseReflection; 4081bool arrayUseReflection = typeDesc.ArrayElementTypeDesc.UseReflection; 4102bool choiceUseReflection = member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.UseReflection; 4132if (typeDesc != null && !typeDesc.UseReflection) { 4274Writer.Write(RaCodeGen.GetStringForCreateInstance(element.Mapping.TypeDesc.CSharpName, element.Mapping.TypeDesc.UseReflection, false, false)); 4438Writer.Write(RaCodeGen.GetStringForCreateInstance(sm.TypeDesc.CSharpName, sm.TypeDesc.UseReflection, sm.TypeDesc.CannotNew, false)); 4470Writer.Write(RaCodeGen.GetStringForEnumMember(enumTypeName, choice.MemberIds[elementIndex], choice.Mapping.TypeDesc.UseReflection)); 4492Writer.Write(RaCodeGen.GetStringForCreateInstance(derived.TypeDesc.CSharpName, derived.TypeDesc.UseReflection, derived.TypeDesc.CannotNew, false)); 4644bool useReflection = mapping.TypeDesc.UseReflection; 4691Writer.Write(RaCodeGen.GetStringForTypeof(typeDesc.CSharpName, typeDesc.UseReflection));
System\Xml\Serialization\XmlSerializationWriter.cs (63)
1386Writer.Write(RaCodeGen.GetStringForTypeof(typeMapping.TypeDesc.CSharpName, typeMapping.TypeDesc.UseReflection)); 1485if (mapping.TypeDesc.UseReflection) 1486Writer.Write(RaCodeGen.GetStringForEnumLongValue(source, mapping.TypeDesc.UseReflection)); 1498Writer.Write(RaCodeGen.GetStringForEnumCompare((EnumMapping)mapping, values[i], mapping.TypeDesc.UseReflection)); 1503Writer.Write(RaCodeGen.GetStringForEnumCompare((EnumMapping)mapping, (string)defaultValue, mapping.TypeDesc.UseReflection)); 1730if (member.ChoiceIdentifier.Mapping.TypeDesc.UseReflection) 1840WriteLocalDecl(fullTypeName, "v", "e", mapping.TypeDesc.UseReflection); 1846Writer.Write(mapping.TypeDesc.UseReflection? "object" : fullTypeName ); 1855if (mapping.TypeDesc.UseReflection) 1856Writer.WriteLine("switch ("+RaCodeGen.GetStringForEnumLongValue("v", mapping.TypeDesc.UseReflection)+" ){"); 1863WriteEnumCase(fullTypeName, c, mapping.TypeDesc.UseReflection); 1874Writer.Write(RaCodeGen.GetStringForEnumLongValue("v", mapping.TypeDesc.UseReflection)); 1892if (mapping.TypeDesc.UseReflection) 1908Writer.Write(RaCodeGen.GetStringForEnumLongValue("v", mapping.TypeDesc.UseReflection)); 1935WriteTypeCompare("t", fullTypeName, derived.TypeDesc.UseReflection); 1948if(!derived.TypeDesc.UseReflection) Writer.Write("("+fullTypeName+")"); 1969WriteTypeCompare("t",fullTypeName, mapping.TypeDesc.UseReflection); 1988if (!mapping.TypeDesc.UseReflection) Writer.Write("("+fullTypeName+")"); 2001WriteArrayTypeCompare("t", fullTypeName, mapping.TypeDesc.ArrayElementTypeDesc.CSharpName, mapping.TypeDesc.UseReflection); 2003WriteTypeCompare("t", fullTypeName, mapping.TypeDesc.UseReflection); 2038WriteLocalDecl(fullTypeName, "o", "s", mapping.TypeDesc.UseReflection); 2042Writer.Write(mapping.TypeDesc.UseReflection ? "object" : fullTypeName); 2062WriteTypeCompare("t", fullTypeName, mapping.TypeDesc.UseReflection); 2096if (mapping.TypeDesc.UseReflection) { 2126string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, "ShouldSerialize"+m.Name, mapping.TypeDesc.UseReflection); 2127if (mapping.TypeDesc.UseReflection) methodInvoke = "(("+typeof(bool).FullName+")"+methodInvoke+")"; 2135if(mapping.TypeDesc.UseReflection) memberGet = "(("+typeof(bool).FullName+")"+ memberGet+")"; 2162string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, "ShouldSerialize"+m.Name, mapping.TypeDesc.UseReflection); 2163if (mapping.TypeDesc.UseReflection) methodInvoke = "(("+typeof(bool).FullName+")"+methodInvoke+")"; 2171if(mapping.TypeDesc.UseReflection) memberGet = "(("+typeof(bool).FullName+")"+ memberGet+")"; 2253if (memberTypeDesc.UseReflection) { 2268if (memberTypeDesc.UseReflection) { 2273Writer.Write(RaCodeGen.GetStringForMethodInvoke("a", memberTypeDesc.CSharpName, "GetEnumerator", memberTypeDesc.UseReflection)); 2281WriteLocalDecl(arrayTypeFullName, "ai", "e.Current", arrayElementTypeDesc.UseReflection); 2295WriteLocalDecl(arrayTypeFullName, "ai", RaCodeGen.GetStringForArrayMember("a", "i", memberTypeDesc), arrayElementTypeDesc.UseReflection); 2368if (!typeDesc.UseReflection) source = "(("+typeDesc.CSharpName+")"+source+")"; 2394bool choiceUseReflection = choice.Mapping.TypeDesc.UseReflection; 2432if (arrayTypeDesc.UseReflection) { 2451if (arrayTypeDesc.UseReflection) { 2456Writer.Write(RaCodeGen.GetStringForMethodInvoke(arrayName, arrayTypeDesc.CSharpName, "GetEnumerator", arrayTypeDesc.UseReflection)); 2463WriteLocalDecl(arrayTypeFullName, arrayName+"i", "e.Current", arrayElementTypeDesc.UseReflection); 2490WriteLocalDecl(arrayTypeFullName, arrayName+"i", RaCodeGen.GetStringForArrayMember(arrayName, "i"+arrayName, arrayTypeDesc), arrayElementTypeDesc.UseReflection); 2493WriteLocalDecl(choiceFullName, choiceName+"i", RaCodeGen.GetStringForArrayMember(choiceName, "i"+arrayName, choice.Mapping.TypeDesc), choice.Mapping.TypeDesc.UseReflection); 2513if (!elements[0].Any && !elements[0].Mapping.TypeDesc.UseReflection && !elements[0].Mapping.TypeDesc.IsOptionalValue) 2542bool useReflection = element.Mapping.TypeDesc.UseReflection; 2544bool enumUseReflection = choice.Mapping.TypeDesc.UseReflection; 2571bool useReflection = element.Mapping.TypeDesc.UseReflection; 2614bool useReflection = element.Mapping.TypeDesc.UseReflection; 2616bool enumUseReflection = choice.Mapping.TypeDesc.UseReflection; 2675bool useReflection = text.Mapping.TypeDesc.UseReflection; 2756if (!element.Mapping.TypeDesc.BaseTypeDesc.UseReflection) 2782Writer.Write(RaCodeGen.GetStringForTypeof(mapping.TypeDesc.CSharpName, mapping.TypeDesc.UseReflection)); 2913Writer.Write(RaCodeGen.GetStringForTypeof(mapping.TypeDesc.CSharpName, mapping.TypeDesc.UseReflection)); 2949bool useReflection = mapping.TypeDesc.UseReflection; 3354if (typeDesc.UseReflection) 3370if (elementTypeDesc.UseReflection) 3409if (elementTypeDesc.UseReflection) 3459bool elementUseReflection = typeDesc.ArrayElementTypeDesc.UseReflection; 3461WriteDefaultIndexerInit(type, typeFullName, typeDesc.UseReflection, elementUseReflection); 3628if (!typeDesc.UseReflection) 3639if (typeDesc != null && !typeDesc.UseReflection) 3671if (!arrayTypeDesc.UseReflection){ 3770if (arrayTypeDesc.UseReflection){