81 references to Converter
mscorlib (81)
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (32)
46
if (Object.ReferenceEquals(type,
Converter
.typeofString))
49
&& (Object.ReferenceEquals(type,
Converter
.typeofObject)))
54
else if (Object.ReferenceEquals(type,
Converter
.typeofStringArray))
56
else if (Object.ReferenceEquals(type,
Converter
.typeofObjectArray))
58
else if (
Converter
.IsPrimitiveArray(type, out typeInformation))
78
if (assembly.Equals(
Converter
.urtAssemblyString))
111
if (Object.ReferenceEquals(type,
Converter
.typeofString))
113
else if (Object.ReferenceEquals(type,
Converter
.typeofObject))
115
else if (Object.ReferenceEquals(type,
Converter
.typeofObjectArray))
117
else if (Object.ReferenceEquals(type,
Converter
.typeofStringArray))
119
else if (
Converter
.IsPrimitiveArray(type, out typeInformation))
123
InternalPrimitiveTypeE primitiveTypeEnum =
Converter
.ToCode(type);
127
if (Assembly.GetAssembly(type) ==
Converter
.urtAssembly)
232
typeString =
Converter
.ToComType(primitiveTypeEnum);
233
type =
Converter
.ToType(primitiveTypeEnum);
237
type =
Converter
.typeofString;
241
type =
Converter
.typeofObject;
246
type =
Converter
.typeofObjectArray;
250
type =
Converter
.typeofStringArray;
254
type =
Converter
.ToArrayType(primitiveTypeEnum);
263
if (Object.ReferenceEquals(type,
Converter
.typeofObject))
321
else if (Object.ReferenceEquals(type,
Converter
.typeofString))
325
InternalPrimitiveTypeE code =
Converter
.ToCode(type);
682
bool isArgPrimitive =
Converter
.ToCode(argTypes[i]) != InternalPrimitiveTypeE.Invalid;
683
if (!(isArgPrimitive || Object.ReferenceEquals(argTypes[i],
Converter
.typeofString)) || args[i] is ISerializable)
912
static Object instanceOfVoid = FormatterServices.GetUninitializedObject(
Converter
.typeofSystemVoid);
950
bool isArgPrimitive =
Converter
.ToCode(argTypes[i]) != InternalPrimitiveTypeE.Invalid;
951
if (!(isArgPrimitive || Object.ReferenceEquals(argTypes[i],
Converter
.typeofString)))
976
bool isReturnTypePrimitive =
Converter
.ToCode(returnType) != InternalPrimitiveTypeE.Invalid;
977
if (isReturnTypePrimitive || Object.ReferenceEquals(returnType,
Converter
.typeofString))
1357
BinaryUtil.NVTraceI("value ("+
Converter
.ToComType(primitiveTypeEnum)+")", value);
1876
String typeString =
Converter
.ToComType(typeInformation);
system\runtime\serialization\formatters\binary\binaryconverter.cs (1)
491
internal static Type typeofConverter = typeof(
Converter
);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (2)
381
if (
Converter
.IsWriteAsByteArray(arrayElemTypeNameInfo.NIprimitiveTypeEnum) && (lowerBound == 0))
389
WriteArrayAsBytes(array,
Converter
.TypeLength(arrayElemTypeNameInfo.NIprimitiveTypeEnum));
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (5)
126
objectType =
Converter
.typeofMarshalByRefObject;
223
else if (Object.ReferenceEquals(objectType,
Converter
.typeofObject))
226
else if (
Converter
.typeofISerializable.IsAssignableFrom(objectType))
593
else if (Object.ReferenceEquals(objectType,
Converter
.typeofObject))
596
else if (
Converter
.typeofISerializable.IsAssignableFrom(objectType))
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (16)
504
if (Object.ReferenceEquals(pr.PRdtType,
Converter
.typeofString))
593
if (Object.ReferenceEquals(objectPr.PRdtType,
Converter
.typeofString))
700
else if ((pr.PRnewObj != null) &&
Converter
.IsWriteAsByteArray(pr.PRarrayElementTypeCode))
721
if (Object.ReferenceEquals(pr.PRarrayElementType,
Converter
.typeofString))
727
else if (Object.ReferenceEquals(pr.PRarrayElementType,
Converter
.typeofObject))
748
if (!pr.PRisLowerBound && (
Converter
.IsWriteAsByteArray(pr.PRarrayElementTypeCode)))
947
if ((Object.ReferenceEquals(objectPr.PRarrayElementType,
Converter
.typeofString)) || (Object.ReferenceEquals(pr.PRdtType,
Converter
.typeofString)))
965
if (Object.ReferenceEquals(pr.PRdtType,
Converter
.typeofString))
986
var =
Converter
.FromString(pr.PRvalue, pr.PRdtTypeCode);
1009
var =
Converter
.FromString(pr.PRvalue, objectPr.PRarrayElementTypeCode);
1084
pr.PRdtTypeCode =
Converter
.ToCode(pr.PRdtType);
1138
if (Object.ReferenceEquals(pr.PRdtType,
Converter
.typeofString))
1152
else if (Object.ReferenceEquals(pr.PRdtType,
Converter
.typeofObject))
1161
if (Object.ReferenceEquals(pr.PRdtType,
Converter
.typeofSystemVoid))
1181
var =
Converter
.FromString(pr.PRvalue, pr.PRdtTypeCode);
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (16)
364
if (Object.ReferenceEquals(objType,
Converter
.typeofString))
412
type =
Converter
.typeofObject;
417
(!Object.ReferenceEquals(type,
Converter
.typeofString)))
487
if (!Object.ReferenceEquals(objectInfo.objectType,
Converter
.typeofString))
522
if (!Object.ReferenceEquals(objectInfo.objectType,
Converter
.typeofString))
586
if (Object.ReferenceEquals(memberType,
Converter
.typeofObject) || (object)Nullable.GetUnderlyingType(memberType) != null)
618
if (Object.ReferenceEquals(memberType,
Converter
.typeofObject))
793
if ((Object.ReferenceEquals(arrayElemType,
Converter
.typeofByte)) && (rank == 1) && (lowerBoundA[0] == 0))
799
if (Object.ReferenceEquals(arrayElemType,
Converter
.typeofObject) || (object)Nullable.GetUnderlyingType(arrayElemType) != null)
820
if (!(
Converter
.IsWriteAsByteArray(arrayElemTypeNameInfo.NIprimitiveTypeEnum) && (lowerBoundA[0] == 0)))
940
if (Object.ReferenceEquals(arrayElemTypeNameInfo.NItype,
Converter
.typeofObject))
950
if (!Object.ReferenceEquals(arrayElemTypeNameInfo.NItype,
Converter
.typeofObject) && (object)Nullable.GetUnderlyingType(arrayElemTypeNameInfo.NItype) == null)
1166
if (Object.ReferenceEquals(typeNameInfo.NItype,
Converter
.typeofString))
1329
InternalPrimitiveTypeE code =
Converter
.ToCode(type);
1356
else if (assemblyString.Equals(
Converter
.urtAssemblyString))
1393
type =
Converter
.typeofMarshalByRefObject;
system\runtime\serialization\formatters\binary\binaryparser.cs (9)
62
systemAssemblyInfo = new BinaryAssemblyInfo(
Converter
.urtAssemblyString,
Converter
.urtAssembly);
778
prs.PRdtType =
Converter
.typeofString;
835
prs.PRkeyDt =
Converter
.ToComType(memberPrimitiveTyped.primitiveTypeEnum);
836
prs.PRdtType =
Converter
.ToType(memberPrimitiveTyped.primitiveTypeEnum);
964
if (
Converter
.IsWriteAsByteArray(pr.PRarrayElementTypeCode) &&
1017
int typeLength =
Converter
.TypeLength(pr.PRarrayElementTypeCode);
1019
pr.PRnewObj =
Converter
.CreatePrimitiveArray(pr.PRarrayElementTypeCode, pr.PRlengthA[0]);
1069
prs.PRdtType =
Converter
.ToType(prs.PRdtTypeCode);