104 references to CSharpName
System.Private.Xml (104)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1459throw CreateReadOnlyCollectionException(typeDesc.CSharpName);
System\Xml\Serialization\SourceInfo.cs (1)
52return new SourceInfo($"(({td.CSharpName}){Source})", Arg, MemberInfo, td.Type!, ILG);
System\Xml\Serialization\XmlSerializationReader.cs (41)
2132string choiceTypeFullName = mapping.ChoiceIdentifier.Mapping.TypeDesc.CSharpName; 2407Writer.Write(RaCodeGen.GetStringForTypeof(mapping.TypeDesc.CSharpName, mapping.TypeDesc.UseReflection)); 2513arraySource = $"(({mapping.TypeDesc!.CSharpName}){source})"; 2644Writer.Write(RaCodeGen.GetStringForCreateInstance(mappings[i].TypeDesc!.CSharpName, mappings[i].TypeDesc!.UseReflection, false, false)); 2693arraySource = $"(({mapping.TypeDesc!.CSharpName}){source})"; 2753string item = $"{(td.ArrayElementTypeDesc == null ? "object" : td.ArrayElementTypeDesc.CSharpName)}[]"; 2769Writer.Write(RaCodeGen.GetStringForMethod("c", td.CSharpName, "Add", useReflection)); 2831Writer.Write(mapping.TypeDesc!.CSharpName); 2938Writer.Write(mapping.TypeDesc.CSharpName); 2980string fullTypeName = mapping.TypeDesc.CSharpName; 3131string fullTypeName = arrayMapping.TypeDesc.CSharpName; 3164string typeName = useReflection ? "object" : nullableMapping.TypeDesc!.CSharpName; 3218string typeName = useReflection ? "object" : structMapping.TypeDesc.CSharpName; 3245Writer.Write(RaCodeGen.GetStringForCreateInstance(structMapping.TypeDesc.CSharpName, useReflection, false, false)); 3492if (anyFixups) WriteFixupMethod(fixupMethodName, members, structMapping.TypeDesc.CSharpName, structMapping.TypeDesc.UseReflection, true, "o"); 3578WriteQuotedCSharpString(typeDesc.CSharpName); 3585Writer.Write(RaCodeGen.GetStringForCreateInstance(typeDesc.CSharpName, typeDesc.UseReflection, typeDesc.CannotNew, true)); 3617string fullTypeName = td.CSharpName; 3737Writer.Write(xmlnsMember.Mapping.TypeDesc!.CSharpName); 3741Writer.Write($"(({xmlnsMember.Mapping.TypeDesc.CSharpName}){xmlnsMember.ArraySource})"); 3909string typeDescFullName = typeDesc.CSharpName; 3913WriteArrayLocalDecl(typeDesc.CSharpName, 3921WriteArrayLocalDecl($"{member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.CSharpName}[]", 3953WriteQuotedCSharpString(member.Mapping.TypeDesc.CSharpName); 4249Writer.Write(RaCodeGen.GetStringForTypeof(td.CSharpName, td.UseReflection)); 4253Writer.Write(RaCodeGen.GetStringForTypeof(e.Mapping!.TypeDesc!.CSharpName, e.Mapping.TypeDesc.UseReflection)); 4289Writer.Write(RaCodeGen.GetStringForCreateInstance(e.Mapping.TypeDesc.CSharpName, e.Mapping.TypeDesc.UseReflection, false, true, $"({td.CSharpName}){checkTypeSource}")); 4394string arrayTypeFullName = typeDesc.ArrayElementTypeDesc!.CSharpName; 4408return RaCodeGen.GetStringForMethod(arrayName, typeDesc.CSharpName, "Add", useReflection); 4439string arrayTypeFullName = typeDesc.ArrayElementTypeDesc.CSharpName; 4461string choiceTypeName = member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.CSharpName; 4494Writer.Write(typeDesc.CSharpName); 4652Writer.Write(RaCodeGen.GetStringForCreateInstance(element.Mapping.TypeDesc.CSharpName, element.Mapping.TypeDesc.UseReflection, false, false)); 4836if (sm.TypeDesc!.CSharpName == "global::System.Xml.Linq.XElement") 4838Writer.Write(RaCodeGen.GetStringForCreateInstance(sm.TypeDesc!.CSharpName, false, false, false, "\"default\"")); 4842Writer.Write(RaCodeGen.GetStringForCreateInstance(sm.TypeDesc!.CSharpName, sm.TypeDesc.UseReflection, sm.TypeDesc.CannotNew, false)); 4875string enumTypeName = choice.Mapping!.TypeDesc!.CSharpName; 4905Writer.Write(RaCodeGen.GetStringForCreateInstance(derived.TypeDesc!.CSharpName, derived.TypeDesc.UseReflection, derived.TypeDesc.CannotNew, false)); 5053string fullTypeName = mapping.TypeDesc!.CSharpName; 5105Writer.Write(RaCodeGen.GetStringForTypeof(typeDesc.CSharpName, typeDesc.UseReflection));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
93string choiceTypeFullName = mapping.ChoiceIdentifier.Mapping!.TypeDesc!.CSharpName; 440arraySource = $"(({mapping.TypeDesc!.CSharpName}){source})"; 1023string fullTypeName = mapping.TypeDesc!.CSharpName; 1328string typeName = structMapping.TypeDesc!.CSharpName; 2136WriteArrayLocalDecl(typeDesc.CSharpName, 2143WriteArrayLocalDecl($"{member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.CSharpName}[]", 2175ilg.Ldstr(GetCSharpString(member.Mapping.TypeDesc.CSharpName)); 2596string arrayTypeFullName = typeDesc.ArrayElementTypeDesc!.CSharpName; 3430string fullTypeName = mapping.TypeDesc!.CSharpName;
System\Xml\Serialization\XmlSerializationWriter.cs (44)
1622string typeFullName = typeDesc.CSharpName; 1629typeVariable = GenerateVariableName("array", typeDesc.CSharpName); 1646typeVariable = GenerateVariableName(nameof(type), typeDesc.CSharpName); 1696string typeFullName = mapping.TypeDesc!.CSharpName; 1734string elementTypeFullName = typeDesc.ArrayElementTypeDesc!.CSharpName; 1906return $"{mapping.TypeDesc!.CSharpName}.@{memberName}"; 1908string memberAccess = GetStringForEnumMember(mapping.TypeDesc!.CSharpName, memberName, useReflection); 1936string typeFullName = typeDesc.CSharpName; 1943return $"(({typeDesc.CSharpName}){obj}).@{memberName}"; 1981string typeFullName = arrayTypeDesc.IsCollection ? arrayTypeDesc.CSharpName : typeof(Array).FullName!; 2344Writer.Write(RaCodeGen.GetStringForTypeof(typeMapping.TypeDesc.CSharpName, typeMapping.TypeDesc.UseReflection)); 2429Writer.Write(typeDesc.CSharpName); 2752enumSource = $"(({mapping.Members[j].TypeDesc!.CSharpName })p[{j}])"; 2865string fullTypeName = mapping.TypeDesc!.CSharpName; 2977string fullTypeName = derived.TypeDesc!.CSharpName; 3016string fullTypeName = mapping.TypeDesc!.CSharpName; 3048string fullTypeName = mapping.TypeDesc!.CSharpName; 3051WriteArrayTypeCompare("t", fullTypeName, mapping.TypeDesc.ArrayElementTypeDesc!.CSharpName, mapping.TypeDesc.UseReflection); 3085string fullTypeName = mapping.TypeDesc!.CSharpName; 3158xmlnsSource = $"(({member.TypeDesc!.CSharpName}){xmlnsSource})"; 3295string fullTypeName = memberTypeDesc.CSharpName; 3348Writer.Write(RaCodeGen.GetReflectionVariable(memberTypeDesc.CSharpName, "System.Collections.Generic.IEnumerable*")); 3354Writer.Write(arrayElementTypeDesc.CSharpName); 3366Writer.Write(RaCodeGen.GetStringForMethodInvoke("a", memberTypeDesc.CSharpName, "GetEnumerator", memberTypeDesc.UseReflection)); 3373string arrayTypeFullName = arrayElementTypeDesc.CSharpName; 3390string arrayTypeFullName = arrayElementTypeDesc.CSharpName; 3478if (!typeDesc.UseReflection) source = $"(({typeDesc.CSharpName}){source})"; 3499string arrayTypeName = arrayTypeDesc.CSharpName; 3509string choiceFullName = choice.Mapping!.TypeDesc!.CSharpName; 3558Writer.Write(RaCodeGen.GetReflectionVariable(arrayTypeDesc.CSharpName, "System.Collections.Generic.IEnumerable*")); 3566Writer.Write(arrayElementTypeDesc.CSharpName); 3580Writer.Write(RaCodeGen.GetStringForMethodInvoke(arrayName, arrayTypeDesc.CSharpName, "GetEnumerator", arrayTypeDesc.UseReflection)); 3586string arrayTypeFullName = arrayElementTypeDesc.CSharpName; 3617string arrayTypeFullName = arrayElementTypeDesc.CSharpName; 3621string choiceFullName = choice.Mapping!.TypeDesc!.CSharpName; 3649source = $"(({td.CSharpName}){source})"; 3687string fullTypeName = element.Mapping.TypeDesc.CSharpName; 3719string fullTypeName = td.CSharpName; 3831string fullTypeName = text.Mapping.TypeDesc.CSharpName; 3920string fullTypeName = element.Mapping.TypeDesc!.BaseTypeDesc!.CSharpName; 3951Writer.Write(RaCodeGen.GetStringForTypeof(arrayMapping.TypeDesc!.CSharpName, arrayMapping.TypeDesc.UseReflection)); 3964string fullTypeName = td.CSharpName; 4024string fullTypeName = arrayMapping.TypeDesc!.CSharpName; 4098Writer.Write(RaCodeGen.GetStringForTypeof(structMapping.TypeDesc!.CSharpName, structMapping.TypeDesc.UseReflection));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (8)
512enumSource = $"(({mapping.Members[j].TypeDesc!.CSharpName})p[{j}])"; 1160string fullTypeName = memberTypeDesc.CSharpName; 1417string arrayTypeName = arrayTypeDesc.CSharpName; 1432string choiceFullName = choice.Mapping!.TypeDesc!.CSharpName; 1939string fullTypeName = arrayMapping.TypeDesc!.CSharpName; 2549Debug.Assert(typeName == arrayTypeDesc.CSharpName || typeName == $"{arrayTypeDesc.CSharpName}[]"); 2550Type localType = (typeName == arrayTypeDesc.CSharpName) ? arrayTypeDesc.Type! : arrayTypeDesc.Type!.MakeArrayType();