4 writes to BaseType
dotnet-svcutil-lib (4)
CodeDomFixup\CodeDomVisitors\NamespaceFixer.cs (2)
76typeref.BaseType = typeref.BaseType.Replace(s_microsoftXml, s_systemXml); 80typeref.BaseType = typeref.BaseType.Replace(s_microsoftCodeDom, s_systemCodeDom);
CodeDomFixup\CodeDomVisitors\SimpleTypeRemapper.cs (1)
39typeref.BaseType = destType;
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
88typeref.BaseType = string.IsNullOrEmpty(typeNamespace) ? destType : _typeDeclCollection.TypeNamespaceMappings[s_currentMatchingFullTypeName] + "." + destType;
82 references to BaseType
dotnet-svcutil-lib (82)
CodeDomFixup\CodeDomHelpers.cs (2)
143return typeRef1.BaseType == typeRef2.BaseType &&
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
483if (method.ReturnType.BaseType != typeof(void).FullName)
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
28if (!_alreadyAdded.Contains(_namespacesToMatch[ns]) && typeref.BaseType.StartsWith(ns, StringComparison.Ordinal))
CodeDomFixup\CodeDomVisitors\NamespaceFixer.cs (6)
74if (typeref.BaseType.Contains(s_microsoftXml) && _xmlTypes.ContainsKey(typeref.BaseType)) 76typeref.BaseType = typeref.BaseType.Replace(s_microsoftXml, s_systemXml); 78if (typeref.BaseType.Contains(s_microsoftCodeDom) && _codeDomTypes.ContainsKey(typeref.BaseType)) 80typeref.BaseType = typeref.BaseType.Replace(s_microsoftCodeDom, s_systemCodeDom);
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (6)
21: base(null, ArrayOfXElementTypeHelper.ArrayOfXElementRef.BaseType) 28if (typeref.BaseType.Contains(".")) 30s_currentMatchingFullTypeName = typeref.BaseType; 31return _specialIXmlSerializableTypes.ContainsKey(typeref.BaseType); 35return MatchTypeName(typeref.BaseType); 61&& memberProp.Type.BaseType == specialTypeName
CodeDomFixup\ConfigToCode.cs (23)
101if (string.Equals(clientType.BaseTypes[0].BaseType, ConfigToCodeConstants.ClientBaseOfTBaseName, StringComparison.Ordinal)) 105else if (string.Equals(clientType.BaseTypes[0].BaseType, ConfigToCodeConstants.DuplexClientBaseOfTBaseName, StringComparison.Ordinal)) 129else if (ctor.Parameters.Count == 1 && !string.Equals(ctor.Parameters[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)) 137else if (ctor.Parameters.Count == 1 && string.Equals(ctor.Parameters[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)) 153else if (ctor.Parameters.Count == 2 && string.Equals(ctor.Parameters[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)) 207else if (ctor.Parameters.Count == 1 && string.Equals(ctor.Parameters[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)) 236else if (ctor.Parameters.Count == 2 && string.Equals(ctor.Parameters[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal) 237&& string.Equals(ctor.Parameters[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)) 265else if (ctor.Parameters.Count == 2 && string.Equals(ctor.Parameters[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal) && 266string.Equals(ctor.Parameters[1].Type.BaseType, typeof(EndpointAddress).FullName, StringComparison.Ordinal)) 314if (ctor.Parameters.Count > 0 && string.Equals(ctor.Parameters[0].Type.BaseType, typeof(InstanceContext).FullName)) 337else if (ctor.Parameters.Count == 2 && string.Equals(ctor.Parameters[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)) 366else if (ctor.Parameters.Count == 3 && string.Equals(ctor.Parameters[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal) 367&& string.Equals(ctor.Parameters[2].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)) 394else if (ctor.Parameters.Count == 3 && string.Equals(ctor.Parameters[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal) 395&& string.Equals(ctor.Parameters[2].Type.BaseType, typeof(EndpointAddress).FullName, StringComparison.Ordinal)) 440if (string.Equals(baseType.BaseType, ConfigToCodeConstants.ClientBaseOfTBaseName, StringComparison.Ordinal) && baseType.TypeArguments.Count == 1) 442return baseType.TypeArguments[0].BaseType; 444else if (string.Equals(baseType.BaseType, ConfigToCodeConstants.DuplexClientBaseOfTBaseName, StringComparison.Ordinal) && baseType.TypeArguments.Count == 1) 446return baseType.TypeArguments[0].BaseType; 457if (type.BaseTypes.Count > 0 && string.Equals(clientTypeName, type.BaseTypes[0].BaseType, StringComparison.Ordinal)) 470if (string.Equals(baseType.BaseType, ConfigToCodeConstants.ClientBaseOfTBaseName, StringComparison.Ordinal) 471|| string.Equals(baseType.BaseType, ConfigToCodeConstants.DuplexClientBaseOfTBaseName, StringComparison.Ordinal))
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (2)
663String baseType = e.BaseType; 680string baseType = e.BaseType;
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
3674string s = typeRef.BaseType; 3742string baseType = typeRef.BaseType;
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclaration.cs (1)
70_name = attributeType.BaseType;
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (1)
373return _arrayElementType.BaseType;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
498contractCodeDomInfo.TypeReference = new CodeTypeReference(containingContractCodeDomInfo.TypeReference.BaseType + "+" + nestedTypeName);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (2)
28throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotSetNamespaceForReferencedType, TypeReference.BaseType))); 37throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotSetMembersForReferencedType, TypeReference.BaseType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (2)
21if (attribute.AttributeType.BaseType == refT.BaseType)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (17)
168clientType.BaseTypes.Add(new CodeTypeReference(context.ServiceContractGenerator.GetCodeTypeReference(typeof(ClientBase<>)).BaseType, context.ContractTypeReference)); 170clientType.BaseTypes.Add(new CodeTypeReference(context.ServiceContractGenerator.GetCodeTypeReference(typeof(DuplexClientBase<>)).BaseType, context.ContractTypeReference)); 286if (method.ReturnType.BaseType == s_voidTypeRef.BaseType) 330if (param == null && dir == FieldDirection.Out && helperMethod.ReturnType.BaseType == s_voidTypeRef.BaseType) 358if (p.Direction != dir && p.Type.BaseType == field.Type.BaseType) 513if ((endMethod.Parameters.Count == 1) && (endMethod.ReturnType.BaseType == s_voidTypeRef.BaseType)) 558if (endMethod.ReturnType.BaseType != s_voidTypeRef.BaseType) 586if (endMethod.Parameters[index].Type.BaseType != s_asyncResultTypeRef.BaseType) 740if (endMethod.ReturnType.BaseType != s_voidTypeRef.BaseType) 995return method.ReturnType == null || String.Compare(method.ReturnType.BaseType, typeof(void).FullName, StringComparison.Ordinal) == 0;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (4)
189if (attr.AttributeType.BaseType == s_dataContractAttributeTypeRef.BaseType) 243if (x == null || y == null || x.ArrayRank != y.ArrayRank || x.BaseType != y.BaseType)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (5)
1675return typeRef.BaseType; 1677return typeRef.BaseType + "[]"; 1735return typeRef.BaseType; 1737return typeRef.BaseType + "[]"; 1745return typeRef.BaseType == typeof(Nullable<>).FullName;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (5)
425bool isRef = existing != null && existing.Type.BaseType == type.BaseType; 757throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SfxUseTypedMessageForCustomAttributes, setting.Name, localAttributes[0].AttributeType.BaseType))); 955if (resultType.BaseType == ServiceReflector.VoidType.FullName) 961taskReturnType = new CodeTypeReference(_context.ServiceContractGenerator.GetCodeTypeReference(ServiceReflector.taskTResultType).BaseType, resultType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
356serviceContractAttr.Arguments.Add(new CodeAttributeArgument("ConfigurationName", new CodePrimitiveExpression(NamespaceHelper.GetCodeTypeReference(context.Namespace, context.ContractType).BaseType)));