3 writes to TypeReference
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
422contractCodeDomInfo.TypeReference = referencedType; 458contractCodeDomInfo.TypeReference = new CodeTypeReference((clrNamespace == null || clrNamespace.Length == 0) ? typeName : clrNamespace + "." + typeName); 514contractCodeDomInfo.TypeReference = new CodeTypeReference(containingContractCodeDomInfo.TypeReference.BaseType + "+" + nestedTypeName);
12 references to TypeReference
System.Runtime.Serialization.Schema (12)
System\Runtime\Serialization\Schema\CodeExporter.cs (10)
314Debug.Assert(contractCodeDomInfo.TypeReference != null); 315return contractCodeDomInfo.TypeReference; 513Debug.Assert(containingContractCodeDomInfo.TypeReference != null, "Nested types have containing types by definition - types with reference"); 514contractCodeDomInfo.TypeReference = new CodeTypeReference(containingContractCodeDomInfo.TypeReference.BaseType + "+" + nestedTypeName); 835Debug.Assert(baseContractCodeDomInfo.TypeReference != null, "Class data contracts should have non-null TypeReference"); 836type.BaseTypes.Add(baseContractCodeDomInfo.TypeReference); 840Type? actualType = (Type?)baseContractCodeDomInfo.TypeReference?.UserData[s_codeUserDataActualTypeKey]; 1171Debug.Assert(baseContractCodeDomInfo.TypeReference != null, "Class data contracts should have non-null TypeReference"); 1172type.BaseTypes.Add(baseContractCodeDomInfo.TypeReference); 1175Type? actualType = (Type?)baseContractCodeDomInfo.TypeReference?.UserData[s_codeUserDataActualTypeKey];
System\Runtime\Serialization\Schema\ContractCodeDomInfo.cs (2)
29throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.CannotSetNamespaceForReferencedType, TypeReference?.BaseType))); 52throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.CannotSetMembersForReferencedType, TypeReference?.BaseType)));