FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (63)
1618Writer.Write(RaCodeGen.GetStringForTypeof(typeMapping.TypeDesc.CSharpName, typeMapping.TypeDesc.UseReflection));
1731if (mapping.TypeDesc.UseReflection)
1732Writer.Write(RaCodeGen.GetStringForEnumLongValue(source, mapping.TypeDesc.UseReflection));
1746Writer.Write(RaCodeGen.GetStringForEnumCompare((EnumMapping)mapping, values[i], mapping.TypeDesc.UseReflection));
1752Writer.Write(RaCodeGen.GetStringForEnumCompare((EnumMapping)mapping, (string)defaultValue, mapping.TypeDesc.UseReflection));
2016if (member.ChoiceIdentifier.Mapping.TypeDesc.UseReflection)
2138WriteLocalDecl(fullTypeName, "v", "e", mapping.TypeDesc.UseReflection);
2145Writer.Write(mapping.TypeDesc.UseReflection ? "object" : fullTypeName);
2155if (mapping.TypeDesc.UseReflection)
2156Writer.WriteLine("switch (" + RaCodeGen.GetStringForEnumLongValue("v", mapping.TypeDesc.UseReflection) + " ){");
2165WriteEnumCase(fullTypeName, c, mapping.TypeDesc.UseReflection);
2177Writer.Write(RaCodeGen.GetStringForEnumLongValue("v", mapping.TypeDesc.UseReflection));
2197if (mapping.TypeDesc.UseReflection)
2215Writer.Write(RaCodeGen.GetStringForEnumLongValue("v", mapping.TypeDesc.UseReflection));
2246WriteTypeCompare("t", fullTypeName, derived.TypeDesc.UseReflection);
2259if (!derived.TypeDesc.UseReflection) Writer.Write("(" + fullTypeName + ")");
2284WriteTypeCompare("t", fullTypeName, mapping.TypeDesc.UseReflection);
2303if (!mapping.TypeDesc.UseReflection) Writer.Write("(" + fullTypeName + ")");
2317WriteArrayTypeCompare("t", fullTypeName, mapping.TypeDesc.ArrayElementTypeDesc.CSharpName, mapping.TypeDesc.UseReflection);
2319WriteTypeCompare("t", fullTypeName, mapping.TypeDesc.UseReflection);
2356WriteLocalDecl(fullTypeName, "o", "s", mapping.TypeDesc.UseReflection);
2361Writer.Write(mapping.TypeDesc.UseReflection ? "object" : fullTypeName);
2382WriteTypeCompare("t", fullTypeName, mapping.TypeDesc.UseReflection);
2421if (mapping.TypeDesc.UseReflection)
2458string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, "ShouldSerialize" + m.Name, mapping.TypeDesc.UseReflection);
2459if (mapping.TypeDesc.UseReflection) methodInvoke = "((" + typeof(bool).FullName + ")" + methodInvoke + ")";
2468if (mapping.TypeDesc.UseReflection) memberGet = "((" + typeof(bool).FullName + ")" + memberGet + ")";
2499string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, "ShouldSerialize" + m.Name, mapping.TypeDesc.UseReflection);
2500if (mapping.TypeDesc.UseReflection) methodInvoke = "((" + typeof(bool).FullName + ")" + methodInvoke + ")";
2509if (mapping.TypeDesc.UseReflection) memberGet = "((" + typeof(bool).FullName + ")" + memberGet + ")";
2606if (memberTypeDesc.UseReflection)
2624if (memberTypeDesc.UseReflection)
2630Writer.Write(RaCodeGen.GetStringForMethodInvoke("a", memberTypeDesc.CSharpName, "GetEnumerator", memberTypeDesc.UseReflection));
2638WriteLocalDecl(arrayTypeFullName, "ai", "e.Current", arrayElementTypeDesc.UseReflection);
2655WriteLocalDecl(arrayTypeFullName, "ai", RaCodeGen.GetStringForArrayMember("a", "i", memberTypeDesc), arrayElementTypeDesc.UseReflection);
2742if (!typeDesc.UseReflection) source = "((" + typeDesc.CSharpName + ")" + source + ")";
2772bool choiceUseReflection = choice.Mapping.TypeDesc.UseReflection;
2815if (arrayTypeDesc.UseReflection)
2837if (arrayTypeDesc.UseReflection)
2843Writer.Write(RaCodeGen.GetStringForMethodInvoke(arrayName, arrayTypeDesc.CSharpName, "GetEnumerator", arrayTypeDesc.UseReflection));
2850WriteLocalDecl(arrayTypeFullName, arrayName + "i", "e.Current", arrayElementTypeDesc.UseReflection);
2881WriteLocalDecl(arrayTypeFullName, arrayName + "i", RaCodeGen.GetStringForArrayMember(arrayName, "i" + arrayName, arrayTypeDesc), arrayElementTypeDesc.UseReflection);
2885WriteLocalDecl(choiceFullName, choiceName + "i", RaCodeGen.GetStringForArrayMember(choiceName, "i" + arrayName, choice.Mapping.TypeDesc), choice.Mapping.TypeDesc.UseReflection);
2909if (!elements[0].Any && !elements[0].Mapping.TypeDesc.UseReflection && !elements[0].Mapping.TypeDesc.IsOptionalValue)
2943bool useReflection = element.Mapping.TypeDesc.UseReflection;
2945bool enumUseReflection = choice.Mapping.TypeDesc.UseReflection;
2974bool useReflection = element.Mapping.TypeDesc.UseReflection;
3019bool useReflection = element.Mapping.TypeDesc.UseReflection;
3022bool enumUseReflection = choice.Mapping.TypeDesc.UseReflection;
3088bool useReflection = text.Mapping.TypeDesc.UseReflection;
3181if (!element.Mapping.TypeDesc.BaseTypeDesc.UseReflection)
3211Writer.Write(RaCodeGen.GetStringForTypeof(mapping.TypeDesc.CSharpName, mapping.TypeDesc.UseReflection));
3361Writer.Write(RaCodeGen.GetStringForTypeof(mapping.TypeDesc.CSharpName, mapping.TypeDesc.UseReflection));
3402bool useReflection = mapping.TypeDesc.UseReflection;
3837if (typeDesc.UseReflection)
3854if (elementTypeDesc.UseReflection)
3894if (elementTypeDesc.UseReflection)
3955bool elementUseReflection = typeDesc.ArrayElementTypeDesc.UseReflection;
3958WriteDefaultIndexerInit(type, typeFullName, typeDesc.UseReflection, elementUseReflection);
4152if (!typeDesc.UseReflection)
4164if (typeDesc != null && !typeDesc.UseReflection)
4198if (!arrayTypeDesc.UseReflection)
4311if (arrayTypeDesc.UseReflection)