137 instantiations of CodeTypeReference
dotnet-svcutil-lib (137)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (15)
37s_arrayOfXElementRef = new CodeTypeReference(GetUniqueClassName(targetNamespace)); 87CodeAttributeDeclaration generatedCodeAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(GeneratedCodeAttribute))); 125typeRefArgs[i] = new CodeTypeReference(typeArguments[i]); 127return new CodeTypeReference(typeName, typeRefArgs); 137CodeAttributeDeclaration xmlSchemaProviderAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.XmlSchemaProviderAttribute)), 142classToGen.BaseTypes.Add(new CodeTypeReference(typeof(Object))); 143classToGen.BaseTypes.Add(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable))); 194getSchemaMethod.ReturnType = new CodeTypeReference(typeof(Microsoft.Xml.Schema.XmlSchema)); 198new CodeTypeReference(typeof(NotImplementedException)), 212writeXml.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(Microsoft.Xml.XmlWriter)), "writer")); 222CodeCastExpression iXmlSerCast = new CodeCastExpression(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)), eCurrent); 243readXml.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(Microsoft.Xml.XmlReader)), "reader")); 261new CodeTypeReference(xelementType), "elem", 262new CodeObjectCreateExpression(new CodeTypeReference(xelementType), new CodePrimitiveExpression("default"))); 264CodeCastExpression iXmlSerCast = new CodeCastExpression(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)), new CodeVariableReferenceExpression("elem"));
CodeDomFixup\CodeDomHelpers.cs (4)
96(MatchType(method.ReturnType, new CodeTypeReference(typeof(Task<>)), false, true) || 127return MatchType(typeRef, new CodeTypeReference(type)); 169return MatchType(typeRef, new CodeTypeReference(type), false/*ignoreArrayness*/, true/*ignoreGenericParameters*/); 174return MatchType(typeRef, new CodeTypeReference(type), true/*ignoreArrayness*/, true/*ignoreGenericParameters*/);
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (5)
28CodeTypeReference delegateType = new CodeTypeReference(typeof(Action<>)); 29delegateType.TypeArguments.Add(new CodeTypeReference(typeof(IAsyncResult))); 36ReturnType = new CodeTypeReference(typeof(Task)), 45TargetType = new CodeTypeReference(typeof(ICommunicationObject)), 81TargetType = new CodeTypeReference(typeof(ICommunicationObject)),
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (20)
112ctor.ChainedConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name))); 123ctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl")); 124ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); 147ctor.ChainedConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name))); 160ctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl")); 161ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); 186ctor.ChainedConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name))); 195ctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl")); 196ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); ; 248operationCompletedMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(object)), "state")); 249operationCompletedMethod.ReturnType = new CodeTypeReference(typeof(void)); 255Type = new CodeTypeReference(typeof(object[])), 258TargetType = new CodeTypeReference(typeof(object[])), 319operationCompletedEvent.Type = new CodeTypeReference(typeof(EventHandler)); 343evtArg.BaseTypes.Add(new CodeTypeReference(typeof(AsyncCompletedEventArgs))); 399callbackImpl.BaseTypes.Add(new CodeTypeReference(typeof(object))); 400callbackImpl.BaseTypes.Add(new CodeTypeReference(callbackInterface.Name)); 414Type = new CodeTypeReference(parent.Name) 429Type = new CodeTypeReference(parent.Name) 457arr.CreateType = new CodeTypeReference(typeof(object));
CodeDomFixup\MethodCreationHelper.cs (4)
29ReturnType = new CodeTypeReference(typeof(EndpointAddress)), 38ReturnType = new CodeTypeReference(typeof(Binding)), 2178ReturnType = new CodeTypeReference(typeof(Binding)), 2185ReturnType = new CodeTypeReference(typeof(EndpointAddress)),
FrameworkFork\Microsoft.CodeDom\System\CodeArrayCreateExpression.cs (7)
55_createType = new CodeTypeReference(createType); 64_createType = new CodeTypeReference(createType); 85_createType = new CodeTypeReference(createType); 94_createType = new CodeTypeReference(createType); 115_createType = new CodeTypeReference(createType); 124_createType = new CodeTypeReference(createType); 140_createType = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclaration.cs (1)
93_attributeType = new CodeTypeReference(_name);
FrameworkFork\Microsoft.CodeDom\System\CodeCastExpression.cs (3)
55TargetType = new CodeTypeReference(targetType); 64TargetType = new CodeTypeReference(targetType); 79_targetType = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClause.cs (1)
87_catchExceptionType = new CodeTypeReference(typeof(System.Exception));
FrameworkFork\Microsoft.CodeDom\System\CodeDefaultValueExpression.cs (1)
37_type = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeDelegateCreateExpression.cs (1)
61_delegateType = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeMemberEvent.cs (1)
47_type = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeMemberField.cs (3)
54Type = new CodeTypeReference(type); 63Type = new CodeTypeReference(type); 78_type = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeMemberMethod.cs (1)
72_returnType = new CodeTypeReference(typeof(void).FullName);
FrameworkFork\Microsoft.CodeDom\System\CodeMemberProperty.cs (1)
73_type = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeObjectCreateExpression.cs (3)
54CreateType = new CodeTypeReference(createType); 63CreateType = new CodeTypeReference(createType); 78_createType = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpression.cs (3)
56Type = new CodeTypeReference(type); 65Type = new CodeTypeReference(type); 120_type = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDelegate.cs (2)
39BaseTypes.Add(new CodeTypeReference("System.Delegate")); 63_returnType = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeTypeOfExpression.cs (3)
51Type = new CodeTypeReference(type); 59Type = new CodeTypeReference(type); 73_type = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (6)
65_arrayElementType = new CodeTypeReference(type.GetElementType()); 122TypeArguments.Add(new CodeTypeReference(genericArgs[i])); 238typeArgumentList.Add(new CodeTypeReference(name)); 252CodeTypeReference type = new CodeTypeReference(typeName.Substring(0, end + 1), Options); 261type = new CodeTypeReference(type, (int)q.Dequeue()); 310_arrayElementType = new CodeTypeReference(baseType);
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (2)
82Add(new CodeTypeReference(value)); 90Add(new CodeTypeReference(value));
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceExpression.cs (3)
51Type = new CodeTypeReference(type); 59Type = new CodeTypeReference(type); 73_type = new CodeTypeReference("");
FrameworkFork\Microsoft.CodeDom\System\CodeVariableDeclarationStatement.cs (5)
54Type = new CodeTypeReference(type); 63Type = new CodeTypeReference(type); 85Type = new CodeTypeReference(type); 95Type = new CodeTypeReference(type); 145_type = new CodeTypeReference("");
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (4)
247codeClass.BaseTypes.Add(new CodeTypeReference(typeof(long))); 348prop.Type = new CodeTypeReference(typeName); 391codeClass.BaseTypes.Add(new CodeTypeReference(typeof(System.ComponentModel.INotifyPropertyChanged))); 427propertyChangedEvent.Type = new CodeTypeReference(typeof(PropertyChangedEventHandler));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (2)
304initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(DateTime)), new CodeExpression[] { new CodePrimitiveExpression(ticks) }); 311initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(Guid)), new CodeExpression[] { valueExpression });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
447CodeGenerator.ValidateIdentifiers(new CodeTypeReference(typeName));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (4)
361return new CodeTypeReference(type); 446contractCodeDomInfo.TypeReference = new CodeTypeReference((clrNamespace == null || clrNamespace.Length == 0) ? typeName : clrNamespace + "." + typeName); 498contractCodeDomInfo.TypeReference = new CodeTypeReference(containingContractCodeDomInfo.TypeReference.BaseType + "+" + nestedTypeName); 611typeReference = new CodeTypeReference(GetElementTypeReference(itemContract, isItemTypeNullable), 1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
18CodeTypeReference refT = new CodeTypeReference(typeof(T));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (20)
52private static CodeTypeReference s_voidTypeRef = new CodeTypeReference(typeof(void)); 53private static CodeTypeReference s_asyncResultTypeRef = new CodeTypeReference(typeof(IAsyncResult)); 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)); 254CodeAttributeDeclaration browsableAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(EditorBrowsableAttribute))); 520argsType.BaseTypes.Add(new CodeTypeReference(s_asyncCompletedEventArgsType)); 524resultsField.Type = new CodeTypeReference(s_objectArrayType); 620operationCompletedEvent.Type = new CodeTypeReference(s_eventHandlerType); 643beginOperationDelegate.Type = new CodeTypeReference(s_beginOperationDelegateTypeName); 656onBeginOperationMethod.ReturnType = new CodeTypeReference(s_asyncResultType); 661inValuesParam.Type = new CodeTypeReference(s_objectArrayType); 698endOperationDelegate.Type = new CodeTypeReference(s_endOperationDelegateTypeName); 710onEndOperationMethod.ReturnType = new CodeTypeReference(s_objectArrayType); 716retArray.CreateType = new CodeTypeReference(s_objectArrayType); 773operationCompletedDelegate.Type = new CodeTypeReference(s_sendOrPostCallbackType); 789operationCompletedMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(s_objectType), "state")); 790operationCompletedMethod.ReturnType = new CodeTypeReference(s_voidType); 847eventAsyncMethod.ReturnType = new CodeTypeReference(s_voidType); 849CodeArrayCreateExpression invokeAsyncInValues = new CodeArrayCreateExpression(new CodeTypeReference(s_objectArrayType)); 862eventAsyncMethod.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(s_objectType), userStateParamName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
146private static CodeTypeReference s_dataContractAttributeTypeRef = new CodeTypeReference(typeof(DataContractAttribute));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (2)
2018return new CodeTypeReference(_xmlSerializerOperationGenerator.GetTypeName(membersMapping[0])); 2039return new CodeTypeReference(_xmlSerializerOperationGenerator.GetTypeName(membersMapping[0]));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (2)
957taskReturnType = new CodeTypeReference(ServiceReflector.taskType); 961taskReturnType = new CodeTypeReference(_context.ServiceContractGenerator.GetCodeTypeReference(ServiceReflector.taskTResultType).BaseType, resultType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (3)
54return new CodeTypeReference(type); 589private static CodeTypeReference s_voidTypeReference = new CodeTypeReference(typeof(void)); 765CodeTypeReference codeTypeReference = new CodeTypeReference(String.IsNullOrEmpty(codeNamespace.Name) ? codeType.Name : codeNamespace.Name + '.' + codeType.Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (2)
170CodeAttributeDeclaration knownType = new CodeAttributeDeclaration(new CodeTypeReference(typeof(ServiceKnownTypeAttribute))); 201_operationGenerator.ParameterTypes.Add(part, new CodeTypeReference(part.BaseType));
268 references to CodeTypeReference
dotnet-svcutil-lib (268)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (7)
19private static CodeTypeReference s_arrayOfXElementRef = null; 48internal static CodeTypeReference ArrayOfXElementRef 120internal static CodeTypeReference CreateTypeReference(string typeName, params string[] typeArguments) 122CodeTypeReference[] typeRefArgs = new CodeTypeReference[typeArguments.Length]; 165CodeTypeReference listOfXElement = CreateTypeReference("System.Collections.Generic.List`1", xelementType); 179CodeTypeReference listOfXElement = CreateTypeReference("System.Collections.Generic.List`1", xelementType);
CodeDomFixup\CodeDomHelpers.cs (13)
62internal static CodeMemberMethod GetImplementationOfMethod(CodeTypeReference ifaceType, CodeMemberMethod method) 119internal static bool MatchType<T>(CodeTypeReference typeRef) 125internal static bool MatchType(CodeTypeReference typeRef, Type type) 131internal static bool MatchType(CodeTypeReference typeRef1, CodeTypeReference typeRef2) 136private static bool MatchType(CodeTypeReference typeRef1, CodeTypeReference typeRef2, bool ignoreArrayness, bool ignoreGenericParameters) 167internal static bool MatchGenericBaseType(CodeTypeReference typeRef, Type type) 172internal static bool MatchBaseType(CodeTypeReference typeRef, Type type) 177internal static bool MatchAnyBaseType(CodeTypeReference typeRef, Type[] types) 187internal static bool MatchAnyBaseType(CodeTypeReference typeRef, CodeTypeReference[] types) 211internal static CodeTypeDeclaration ResolveTypeReference(CodeTypeReference type)
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
28CodeTypeReference delegateType = new CodeTypeReference(typeof(Action<>));
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
493protected override void Visit(CodeTypeReference typeref) 560else if (obj is CodeTypeReference) 561Visit((CodeTypeReference)obj); 780protected virtual void Visit(CodeTypeReference typeref) { }
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
23protected override void Visit(CodeTypeReference typeref)
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (3)
16internal PrivateInterfaceMethod(CodeTypeReference ifaceType) 20internal readonly CodeTypeReference InterfaceType; 49CodeTypeReference ifaceType = method.ImplementationTypes[0];
CodeDomFixup\CodeDomVisitors\NamespaceFixer.cs (1)
71protected override void Visit(CodeTypeReference typeref)
CodeDomFixup\CodeDomVisitors\RemoveExtensibleDataObjectImpl.cs (3)
17CollectionHelpers.MapList<CodeTypeReference>( 19delegate (CodeTypeReference typeRef) 39CodeTypeReference memberType = null;
CodeDomFixup\CodeDomVisitors\SimpleTypeRemapper.cs (3)
22protected override void Visit(CodeTypeReference typeref) 32protected virtual bool Match(CodeTypeReference typeref) 37protected virtual void Map(CodeTypeReference typeref)
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (3)
26protected override bool Match(CodeTypeReference typeref) 73foreach (CodeTypeReference typeRef in typeDecl.BaseTypes) 81protected override void Map(CodeTypeReference typeref)
CodeDomFixup\CodeDomVisitors\XmlDomAttributeFixer.cs (1)
23CodeTypeReference memberType = null;
CodeDomFixup\ConfigToCode.cs (2)
438foreach (CodeTypeReference baseType in clientType.BaseTypes) 468foreach (CodeTypeReference baseType in codeDecl.BaseTypes)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
209public virtual string GetTypeOutput(CodeTypeReference type)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (4)
646string ICodeGenerator.GetTypeOutput(CodeTypeReference type) 1357protected abstract void OutputType(CodeTypeReference typeRef); 1412protected virtual void OutputTypeNamePair(CodeTypeReference typeRef, string name) 2182protected abstract string GetTypeOutput(CodeTypeReference value);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (5)
52else if (e is CodeTypeReference) 54ValidateTypeReference((CodeTypeReference)e); 413foreach (CodeTypeReference typeRef in e.BaseTypes) 661private static void ValidateTypeReference(CodeTypeReference e) 677private static void ValidateArity(CodeTypeReference e)
FrameworkFork\Microsoft.CodeDom\Compiler\ICodeGenerator.cs (1)
48string GetTypeOutput(CodeTypeReference type);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (7)
738private void OutputType(CodeTypeReference typeRef) 2740foreach (CodeTypeReference typeRef in e.BaseTypes) 3078private void OutputTypeNamePair(CodeTypeReference typeRef, string name) 3134foreach (CodeTypeReference typeRef in typeParameters[i].Constraints) 3672private string GetBaseTypeOutput(CodeTypeReference typeRef) 3823public string GetTypeOutput(CodeTypeReference typeRef) 3827CodeTypeReference baseTypeRef = typeRef;
FrameworkFork\Microsoft.CodeDom\System\CodeArrayCreateExpression.cs (5)
24private CodeTypeReference _createType; 44public CodeArrayCreateExpression(CodeTypeReference createType, params CodeExpression[] initializers) 74public CodeArrayCreateExpression(CodeTypeReference createType, int size) 104public CodeArrayCreateExpression(CodeTypeReference createType, CodeExpression size) 134public CodeTypeReference CreateType
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclaration.cs (4)
28private CodeTypeReference _attributeType; 61public CodeAttributeDeclaration(CodeTypeReference attributeType) : this(attributeType, null) 65public CodeAttributeDeclaration(CodeTypeReference attributeType, params CodeAttributeArgument[] arguments) 110public CodeTypeReference AttributeType
FrameworkFork\Microsoft.CodeDom\System\CodeCastExpression.cs (3)
26private CodeTypeReference _targetType; 44public CodeCastExpression(CodeTypeReference targetType, CodeExpression expression) 73public CodeTypeReference TargetType
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClause.cs (4)
24private CodeTypeReference _catchExceptionType; 47public CodeCatchClause(string localName, CodeTypeReference catchExceptionType) 56public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) 81public CodeTypeReference CatchExceptionType
FrameworkFork\Microsoft.CodeDom\System\CodeDefaultValueExpression.cs (3)
20private CodeTypeReference _type; 26public CodeDefaultValueExpression(CodeTypeReference type) 31public CodeTypeReference Type
FrameworkFork\Microsoft.CodeDom\System\CodeDelegateCreateExpression.cs (3)
25private CodeTypeReference _delegateType; 43public CodeDelegateCreateExpression(CodeTypeReference delegateType, CodeExpression targetObject, string methodName) 55public CodeTypeReference DelegateType
FrameworkFork\Microsoft.CodeDom\System\CodeMemberEvent.cs (4)
25private CodeTypeReference _type; 26private CodeTypeReference _privateImplements = null; 41public CodeTypeReference Type 60public CodeTypeReference PrivateImplementationType
FrameworkFork\Microsoft.CodeDom\System\CodeMemberField.cs (3)
25private CodeTypeReference _type; 43public CodeMemberField(CodeTypeReference type, string name) 72public CodeTypeReference Type
FrameworkFork\Microsoft.CodeDom\System\CodeMemberMethod.cs (4)
27private CodeTypeReference _returnType; 28private CodeTypeReference _privateImplements = null; 66public CodeTypeReference ReturnType 121public CodeTypeReference PrivateImplementationType
FrameworkFork\Microsoft.CodeDom\System\CodeMemberProperty.cs (4)
25private CodeTypeReference _type; 31private CodeTypeReference _privateImplements = null; 37public CodeTypeReference PrivateImplementationType 67public CodeTypeReference Type
FrameworkFork\Microsoft.CodeDom\System\codemethodreferenceexpression.cs (1)
52public CodeMethodReferenceExpression(CodeExpression targetObject, string methodName, params CodeTypeReference[] typeParameters)
FrameworkFork\Microsoft.CodeDom\System\CodeObjectCreateExpression.cs (3)
25private CodeTypeReference _createType; 43public CodeObjectCreateExpression(CodeTypeReference createType, params CodeExpression[] parameters) 72public CodeTypeReference CreateType
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpression.cs (3)
25private CodeTypeReference _type; 45public CodeParameterDeclarationExpression(CodeTypeReference type, string name) 114public CodeTypeReference Type
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDelegate.cs (2)
27private CodeTypeReference _returnType; 57public CodeTypeReference ReturnType
FrameworkFork\Microsoft.CodeDom\System\CodeTypeOfExpression.cs (3)
25private CodeTypeReference _type; 41public CodeTypeOfExpression(CodeTypeReference type) 67public CodeTypeReference Type
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (7)
42private CodeTypeReference _arrayElementType; 252CodeTypeReference type = new CodeTypeReference(typeName.Substring(0, end + 1), Options); 256type.TypeArguments.Add((CodeTypeReference)typeArgumentList[i]); 274TypeArguments.Add((CodeTypeReference)typeArgumentList[i]); 289public CodeTypeReference(string typeName, params CodeTypeReference[] typeArguments) : this(typeName) 316public CodeTypeReference(CodeTypeReference arrayType, int rank) 326public CodeTypeReference ArrayElementType
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (18)
14/// A collection that stores <see cref='Microsoft.CodeDom.CodeTypeReference'/> objects. 45/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeTypeReferenceCollection'/> containing any array of <see cref='Microsoft.CodeDom.CodeTypeReference'/> objects. 48public CodeTypeReferenceCollection(CodeTypeReference[] value) 54/// <para>Represents the entry at the specified index of the <see cref='Microsoft.CodeDom.CodeTypeReference'/>.</para> 56public CodeTypeReference this[int index] 60return ((CodeTypeReference)(List[index])); 69/// <para>Adds a <see cref='Microsoft.CodeDom.CodeTypeReference'/> with the specified value to the 72public int Add(CodeTypeReference value) 96public void AddRange(CodeTypeReference[] value) 128/// <see cref='Microsoft.CodeDom.CodeTypeReferenceCollection'/> contains the specified <see cref='Microsoft.CodeDom.CodeTypeReference'/>.</para> 130public bool Contains(CodeTypeReference value) 139public void CopyTo(CodeTypeReference[] array, int index) 145/// <para>Returns the index of a <see cref='Microsoft.CodeDom.CodeTypeReference'/> in 148public int IndexOf(CodeTypeReference value) 154/// <para>Inserts a <see cref='Microsoft.CodeDom.CodeTypeReference'/> into the <see cref='Microsoft.CodeDom.CodeTypeReferenceCollection'/> at the specified index.</para> 156public void Insert(int index, CodeTypeReference value) 162/// <para> Removes a specific <see cref='Microsoft.CodeDom.CodeTypeReference'/> from the 165public void Remove(CodeTypeReference value)
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceExpression.cs (3)
25private CodeTypeReference _type; 41public CodeTypeReferenceExpression(CodeTypeReference type) 67public CodeTypeReference Type
FrameworkFork\Microsoft.CodeDom\System\CodeVariableDeclarationStatement.cs (4)
25private CodeTypeReference _type; 43public CodeVariableDeclarationStatement(CodeTypeReference type, string name) 73public CodeVariableDeclarationStatement(CodeTypeReference type, string name, CodeExpression initExpression) 139public CodeTypeReference Type
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (29)
348internal CodeTypeReference GetCodeTypeReference(DataContract dataContract) 358private CodeTypeReference GetCodeTypeReference(Type type) 364internal CodeTypeReference GetElementTypeReference(DataContract dataContract, bool isElementTypeNullable) 366CodeTypeReference elementTypeReference = GetCodeTypeReference(dataContract); 407CodeTypeReference referencedType = GetReferencedType(dataContract); 531private CodeTypeReference GetReferencedType(DataContract dataContract) 534CodeTypeReference typeReference = GetSurrogatedTypeReference(dataContract); 594private CodeTypeReference GetReferencedCollectionType(CollectionDataContract collectionContract) 601CodeTypeReference typeReference; 632private bool TryGetReferencedDictionaryType(CollectionDataContract collectionContract, out CodeTypeReference typeReference) 644CodeTypeReference keyTypeReference = GetElementTypeReference(keyMember.MemberTypeContract, keyMember.IsNullable); 645CodeTypeReference valueTypeReference = GetElementTypeReference(valueMember.MemberTypeContract, valueMember.IsNullable); 658private bool TryGetReferencedListType(DataContract itemContract, bool isItemTypeNullable, out CodeTypeReference typeReference) 671private CodeTypeReference GetSurrogatedTypeReference(DataContract dataContract) 683CodeTypeReference typeReference = GetCodeTypeReference(type); 691private CodeTypeReference GetReferencedGenericType(GenericInfo genInfo, out DataContract dataContract) 712CodeTypeReference typeReference = GetCodeTypeReference(type); 723CodeTypeReference paramTypeReference; 864CodeTypeReference memberType = GetElementTypeReference(dataMember.MemberTypeContract, 907internal ICollection<CodeTypeReference> GetKnownTypeReferences(DataContract dataContract) 917List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>(); 1009private CodeTypeReference WrapNullable(CodeTypeReference memberType) 1014CodeTypeReference nullableOfMemberType = GetCodeTypeReference(Globals.TypeOfNullable); 1136CodeTypeReference baseTypeReference; 1545private CodeTypeReference CodeTypeIPropertyChange 1729private CodeMemberProperty CreateProperty(CodeTypeReference type, string propertyName, string fieldName, bool isValueType) 1734private CodeMemberProperty CreateProperty(CodeTypeReference type, string propertyName, string fieldName, bool isValueType, bool raisePropertyChanged)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (1)
15internal CodeTypeReference TypeReference;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XsdDataContractImporter.cs (3)
160public CodeTypeReference GetCodeTypeReference(XmlQualifiedName typeName) 167public CodeTypeReference GetCodeTypeReference(XmlQualifiedName typeName, XmlSchemaElement element) 194public ICollection<CodeTypeReference> GetKnownTypeReferences(XmlQualifiedName typeName)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
18CodeTypeReference refT = new CodeTypeReference(typeof(T));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (9)
52private static CodeTypeReference s_voidTypeRef = new CodeTypeReference(typeof(void)); 53private static CodeTypeReference s_asyncResultTypeRef = new CodeTypeReference(typeof(IAsyncResult)); 166CodeTypeReference contractTypeRef = context.ContractTypeReference; 207CodeTypeReference declaringContractTypeRef = operationContext.DeclaringTypeReference; 232private static CodeMemberMethod GenerateClientClassMethod(CodeTypeDeclaration clientType, CodeTypeReference contractTypeRef, CodeMemberMethod method, bool addHelperMethod, CodeTypeReference declaringContractTypeRef) 262private static CodeMemberMethod GenerateHelperMethod(CodeTypeReference ifaceType, CodeMemberMethod method) 469private static CodeMemberMethod GetImplementationOfMethod(CodeTypeReference ifaceType, CodeMemberMethod method) 596CodeTypeReference propertyType, string propertyName, CodeExpression propertyValueExpr)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (17)
20private Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> _knownTypes; 31internal void Add(MessagePartDescription part, CodeTypeReference typeReference, ICollection<CodeTypeReference> knownTypeReferences, bool isNonNillableReferenceType) 54internal Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> KnownTypes 59_knownTypes = new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>(); 86Dictionary<CodeTypeReference, object> operationKnownTypes = new Dictionary<CodeTypeReference, object>(new CodeTypeReferenceComparer()); 100private void AddKnownTypesForPart(OperationContractGenerationContext context, MessagePartDescription part, Dictionary<CodeTypeReference, object> operationKnownTypes) 102ICollection<CodeTypeReference> knownTypesForPart; 105foreach (CodeTypeReference knownTypeReference in knownTypesForPart) 146private static CodeTypeReference s_dataContractAttributeTypeRef = new CodeTypeReference(typeof(DataContractAttribute)); 236private class CodeTypeReferenceComparer : IEqualityComparer<CodeTypeReference> 238public bool Equals(CodeTypeReference x, CodeTypeReference y) 250foreach (CodeTypeReference xTypeArg in xTypeArgs) 252foreach (CodeTypeReference yTypeArg in yTypeArgs) 262public int GetHashCode(CodeTypeReference obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\FaultDescription.cs (2)
17private CodeTypeReference _detailTypeReference; 46internal CodeTypeReference DetailTypeReference
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (12)
585CodeTypeReference detailElementTypeRef; 1510internal virtual CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 1515internal virtual CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded) 1671CodeTypeReference typeRef = DataContractImporter.GetCodeTypeReference(typeName); 1672ICollection<CodeTypeReference> knownTypeRefs = DataContractImporter.GetKnownTypeReferences(typeName); 1731CodeTypeReference typeRef = DataContractImporter.GetCodeTypeReference(typeName, element); 1732ICollection<CodeTypeReference> knownTypeRefs = DataContractImporter.GetKnownTypeReferences(typeName); 1744CodeTypeReference typeRef = DataContractImporter.GetCodeTypeReference(typeName, element); 1776internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 1803internal override CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded) 2012internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 2021internal override CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationContractGenerationContext.cs (2)
24private CodeTypeReference _declaringTypeReference; 108internal CodeTypeReference DeclaringTypeReference
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (27)
28private Dictionary<MessagePartDescription, CodeTypeReference> _parameterTypes; 46internal Dictionary<MessagePartDescription, CodeTypeReference> ParameterTypes 51_parameterTypes = new Dictionary<MessagePartDescription, CodeTypeReference>(); 66internal void GenerateOperation(OperationContractGenerationContext context, ref OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes) 99private readonly Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> _knownTypes; 122internal MethodSignatureGenerator(OperationGenerator parent, OperationContractGenerationContext context, OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes) 283CodeTypeReference typedReqMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, _defaultName + "Request", _request, false /*isReply*/, hideFromEditor, ref _isNewRequest, out _beginPartCodeGenerator); 289CodeTypeReference typedRespMessageRef = GenerateTypedMessageHeaderAndReturnValueParts(ns, _defaultName + "Response", _response, true /*isReply*/, hideFromEditor, ref _isNewResponse, out _endPartCodeGenerator); 299private CodeTypeReference GenerateTypedMessageHeaderAndReturnValueParts(CodeNamespace ns, string defaultName, MessageDescription message, bool isReply, bool hideFromEditor, ref bool isNewMessage, out IPartCodeGenerator partCodeGenerator) 301CodeTypeReference typedMessageRef; 401CodeAttributeDeclarationCollection AddPart(CodeTypeReference type, ref string name); 419internal CodeParameterDeclarationExpression GetOrCreateParameter(CodeTypeReference type, string name, FieldDirection direction, ref int index, out bool createdNew) 492CodeAttributeDeclarationCollection IPartCodeGenerator.AddPart(CodeTypeReference type, ref string name) 561CodeAttributeDeclarationCollection IPartCodeGenerator.AddPart(CodeTypeReference type, ref string name) 590CodeTypeReference wrapperTypeRef = namespaceScope.AddUnique(wrapperTypeDecl, typeName + "Body", "Body"); 613List<CodeTypeReference> wrapperKnownTypes = new List<CodeTypeReference>(); 621ICollection<CodeTypeReference> knownTypesForPart = null; 624foreach (CodeTypeReference typeReference in knownTypesForPart) 686CodeTypeReference type; 711CodeTypeReference partType = GetParameterType(messagePart); 731CodeTypeReference partType = GetParameterType(setting); 737private CodeTypeReference GetParameterType(MessagePartDescription setting) 799internal static void AddGeneratedTypedMessage(ServiceContractGenerationContext contract, MessageDescription message, CodeTypeReference codeTypeReference) 807internal static bool FindGeneratedTypedMessage(ServiceContractGenerationContext contract, MessageDescription message, out CodeTypeReference codeTypeReference) 953CodeTypeReference resultType = _method.ReturnType; 954CodeTypeReference taskReturnType;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerationContext.cs (8)
23private CodeTypeReference _channelTypeReference; 25private CodeTypeReference _clientTypeReference; 26private CodeTypeReference _contractTypeReference; 27private CodeTypeReference _duplexCallbackTypeReference; 57internal CodeTypeReference ChannelTypeReference 69internal CodeTypeReference ClientTypeReference 85internal CodeTypeReference ContractTypeReference 96internal CodeTypeReference DuplexCallbackTypeReference
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (14)
31private Dictionary<MessageDescription, CodeTypeReference> _generatedTypedMessages; 51internal CodeTypeReference GetCodeTypeReference(Type type) 110public CodeTypeReference GenerateServiceContractType(ContractDescription contractDescription) 112CodeTypeReference retVal = GenerateServiceContractTypeInternal(contractDescription); 117private CodeTypeReference GenerateServiceContractTypeInternal(ContractDescription contractDescription) 184internal Dictionary<MessageDescription, CodeTypeReference> GeneratedTypedMessages 189_generatedTypedMessages = new Dictionary<MessageDescription, CodeTypeReference>(MessageDescriptionComparer.Singleton); 249CodeTypeReference contractReference = codeNamespaceScope.AddUnique(contract, contractDescription.CodeName, Strings.DefaultContractName); 252CodeTypeReference callbackContractReference = null; 589private static CodeTypeReference s_voidTypeReference = new CodeTypeReference(typeof(void)); 604CodeTypeReference exceptionTypeReference = fault.DetailType != null ? context.Contract.ServiceContractGenerator.GetCodeTypeReference(fault.DetailType) : fault.DetailTypeReference; 758public static CodeTypeDeclaration GetCodeType(CodeTypeReference codeTypeReference) 763static internal CodeTypeReference GetCodeTypeReference(CodeNamespace codeNamespace, CodeTypeDeclaration codeType) 765CodeTypeReference codeTypeReference = new CodeTypeReference(String.IsNullOrEmpty(codeNamespace.Name) ? codeType.Name : codeNamespace.Name + '.' + codeType.Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
137public CodeTypeReference AddUnique(CodeTypeDeclaration codeType, string name, string defaultName)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
145_operationGenerator.GenerateOperation(context, ref style, xmlSerializerFormatAttribute.IsEncoded, new WrappedBodyTypeGenerator(context), new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>());