1 type derived from CodeTypeDeclaration
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDelegate.cs (1)
24public class CodeTypeDelegate : CodeTypeDeclaration
12 instantiations of CodeTypeDeclaration
dotnet-svcutil-lib (12)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
132CodeTypeDeclaration classToGen = new CodeTypeDeclaration(GetUniqueClassName(ns));
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (3)
48_eventBasedDuplexClass = new CodeTypeDeclaration(type.Name); 341CodeTypeDeclaration evtArg = new CodeTypeDeclaration(); 395CodeTypeDeclaration callbackImpl = new CodeTypeDeclaration();
CodeDomFixup\MethodCreationHelper.cs (1)
68CodeTypeDeclaration configurationsEnum = new CodeTypeDeclaration(ConfigToCodeConstants.EndpointConfigurationEnumTypeName);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (1)
609CodeTypeDeclaration dummyClass = new CodeTypeDeclaration();
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
873CodeTypeDeclaration dummyClass = new CodeTypeDeclaration();
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
241CodeTypeDeclaration codeClass = new CodeTypeDeclaration(mapping.TypeDesc.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (1)
135CodeTypeDeclaration codeClass = new CodeTypeDeclaration(className);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
571CodeTypeDeclaration codeClass = new CodeTypeDeclaration(className);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
509CodeTypeDeclaration typeDecl = new CodeTypeDeclaration(typeName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
463CodeTypeDeclaration codeType = new CodeTypeDeclaration();
299 references to CodeTypeDeclaration
dotnet-svcutil-lib (299)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (13)
18private static CodeTypeDeclaration s_arrayOfXElements = null; 40internal static CodeTypeDeclaration ArrayOfXElements 67Dictionary<string, CodeTypeDeclaration> nameTable = new Dictionary<string, CodeTypeDeclaration>(); 69foreach (CodeTypeDeclaration type in ns.Types) 85private static void AddGeneratedCodeAttribute(CodeTypeDeclaration codeType) 130private static CodeTypeDeclaration CreateArrayOfXmlElementClass(CodeNamespace ns) 132CodeTypeDeclaration classToGen = new CodeTypeDeclaration(GetUniqueClassName(ns)); 159private static void AddField(CodeTypeDeclaration classToGen) 172private static void AddProperty(CodeTypeDeclaration classToGen) 188private static void AddGetSchemaMethod(CodeTypeDeclaration classToGen) 205private static void AddWriteXml(CodeTypeDeclaration classToGen) 236private static void AddReadXml(CodeTypeDeclaration classToGen)
CodeDomFixup\CodeDomHelpers.cs (2)
211internal static CodeTypeDeclaration ResolveTypeReference(CodeTypeReference type) 213return type.UserData[ReferenceKey] as CodeTypeDeclaration;
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
15protected override void VisitClientClass(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\AttributeFixer.cs (1)
44protected override void Visit(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\ClientClassVisitor.cs (2)
17protected virtual void VisitClientClass(CodeTypeDeclaration type) { } 19protected override bool IsSpecificType(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
455protected override void Visit(CodeTypeDeclaration type) 743else if (member is CodeTypeDeclaration) 744Visit((CodeTypeDeclaration)member); 768protected virtual void Visit(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\CodeNamespaceUniqueTypeFixer.cs (1)
18foreach (CodeTypeDeclaration typeDeclaration in ns.Types)
CodeDomFixup\CodeDomVisitors\CodeTypeNameScope.cs (1)
14public CodeTypeNameScope(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\ConstructorFixer.cs (1)
31protected override void VisitClientClass(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (34)
18private List<CodeTypeDeclaration> _eventArgsList = new List<CodeTypeDeclaration>(); 21private CodeTypeDeclaration _eventBasedDuplexClass; 29protected override bool IsSpecificType(CodeTypeDeclaration type) 37protected override void VisitClientClass(CodeTypeDeclaration type) 40CodeTypeDeclaration serviceContractInterface = CodeDomHelpers.ResolveTypeReference(type.BaseTypes[0].TypeArguments[0]); 41CodeTypeDeclaration callbackInterface = GetCallbackContractType(serviceContractInterface); 46private void CreateEventBasedDuplexClass(CodeTypeDeclaration type, CodeTypeDeclaration callbackInterface) 52CodeTypeDeclaration callbackImpl; 75private static void RemoveAsyncMethods(CodeTypeDeclaration callbackInterface) 91foreach (CodeTypeDeclaration type in _eventArgsList) 102private static void CreateCtorOverload(CodeTypeDeclaration parent, CodeTypeDeclaration callbackImpl) 212private static Dictionary<string, string> GenerateEventAsyncMethods(CodeTypeNameScope nameScope, CodeTypeDeclaration parent, CodeTypeDeclaration callbackInterface, List<CodeTypeDeclaration> eventArgsList) 221CodeTypeDeclaration eventArgs = CreateOperationReceivedEventArgsType(nameScope, method); 242CodeTypeDeclaration operationReceivedEventArgsType, CodeMemberEvent operationCompletedEvent) 313CodeTypeDeclaration operationCompletedEventArgsType) 333private static CodeTypeDeclaration CreateOperationReceivedEventArgsType(CodeTypeNameScope nameScope, CodeMemberMethod syncMethod) 341CodeTypeDeclaration evtArg = new CodeTypeDeclaration(); 393private static CodeTypeDeclaration CreateCallbackImplClass(CodeTypeNameScope nameScope, CodeTypeDeclaration parent, CodeTypeDeclaration callbackInterface, Dictionary<string, string> methodNames) 395CodeTypeDeclaration callbackImpl = new CodeTypeDeclaration(); 408private static void AddMembers(CodeTypeDeclaration callbackImpl, CodeTypeDeclaration parent) 419private static void AddInitialize(CodeTypeDeclaration callbackImpl, CodeTypeDeclaration parent) 448private static void AddMethods(CodeTypeDeclaration callbackImpl, CodeTypeDeclaration callbackInterface, Dictionary<string, string> methodNames) 495private static CodeTypeDeclaration GetCallbackContractType(CodeTypeDeclaration iface)
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (1)
23protected override void VisitClientClass(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\RemoveExtensibleDataObjectImpl.cs (1)
12protected override void VisitAttributedType(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromClientClass.cs (1)
11protected override void VisitClientClass(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromInterface.cs (1)
12protected override void VisitAttributedType(CodeTypeDeclaration type)
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (6)
13private Dictionary<string, CodeTypeDeclaration> _specialIXmlSerializableTypes = new Dictionary<string, CodeTypeDeclaration>(); 53private bool IsSpecialIXmlSerializableType(CodeTypeDeclaration type) 71private static bool IsIXmlSerializableType(CodeTypeDeclaration typeDecl) 95CodeTypeDeclaration typeDecl; 113foreach (CodeTypeDeclaration typeDecl in _specialIXmlSerializableTypes.Values)
CodeDomFixup\CodeDomVisitors\SpecificTypeVisitor.cs (5)
11private CodeTypeDeclaration _currentType = null; 12protected CodeTypeDeclaration CurrentType 17protected override void Visit(CodeTypeDeclaration type) 42private void EnterSpecificType(CodeTypeDeclaration type) 56protected abstract bool IsSpecificType(CodeTypeDeclaration type);
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (7)
14internal Dictionary<string, CodeTypeDeclaration> AllTypeDecls = new Dictionary<string, CodeTypeDeclaration>(); 21foreach (CodeTypeDeclaration typeDeclaration in ns.Types) 30private void AddNestedTypes(string fullName, CodeTypeDeclaration type, string typeNamespace) 34CodeTypeDeclaration typeDeclaration = member as CodeTypeDeclaration; 43private void AddType(string fullName, CodeTypeDeclaration typeDeclaration, string typeNamespace)
CodeDomFixup\CodeDomVisitors\TypeNameFixer.cs (3)
19foreach (CodeTypeDeclaration typeDeclaration in ns.Types) 27private void ProcessTypeAndMembers(CodeTypeDeclaration typeDeclaration) 36if (member is CodeTypeDeclaration nestedType)
CodeDomFixup\CodeDomVisitors\TypeWithAttributeVisitor.cs (2)
13protected override bool IsSpecificType(CodeTypeDeclaration type) 24protected virtual void VisitAttributedType(CodeTypeDeclaration type) { }
CodeDomFixup\CodeDomVisitors\XmlDomAttributeFixer.cs (1)
14protected override void Visit(CodeTypeDeclaration type)
CodeDomFixup\ConfigToCode.cs (12)
22foreach (var clientType in FindClientTypes(namespaceDecl)) 29private void MoveConfigIntoCode(CodeTypeDeclaration clientType, Collection<ServiceEndpoint> endpoints, CodeNamespace namespaceDecl) 99private void FixupConstructors(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames) 111private static void FixupConstructorsEventBasedDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists) 178private static void FixupConstructorsNonDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, List<string> endpointNames) 304private void FixupConstructorsDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames) 429foreach (var extendedClientType in FindExtendedClientTypes(clientType.Name, namespaceDecl)) 436private static string ExtractContract(CodeTypeDeclaration clientType) 453private IEnumerable<CodeTypeDeclaration> FindExtendedClientTypes(string clientTypeName, CodeNamespace namespaceDecl) 455foreach (CodeTypeDeclaration type in namespaceDecl.Types) 464private IEnumerable<CodeTypeDeclaration> FindClientTypes(CodeNamespace namespaceDecl) 466foreach (CodeTypeDeclaration codeDecl in namespaceDecl.Types)
CodeDomFixup\MethodCreationHelper.cs (3)
21public MethodCreationHelper(CodeTypeDeclaration clientType) 44private CodeTypeDeclaration ClientType { get; set; } 68CodeTypeDeclaration configurationsEnum = new CodeTypeDeclaration(ConfigToCodeConstants.EndpointConfigurationEnumTypeName);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
269public virtual void GenerateCodeFromType(CodeTypeDeclaration codeType, TextWriter writer, CodeGeneratorOptions options)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (27)
31private CodeTypeDeclaration _currentClass; 41protected CodeTypeDeclaration CurrentClass 235private void GenerateType(CodeTypeDeclaration e) 291private void GenerateTypeMember(CodeTypeMember member, CodeTypeDeclaration declaredType) 298if (member is CodeTypeDeclaration) 300((ICodeGenerator)this).GenerateCodeFromType((CodeTypeDeclaration)member, _output.InnerWriter, _options); 382private void GenerateTypeConstructors(CodeTypeDeclaration e) 430foreach (CodeTypeDeclaration c in e.Types) 447void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) 609CodeTypeDeclaration dummyClass = new CodeTypeDeclaration(); 651private void GenerateConstructors(CodeTypeDeclaration e) 681private void GenerateEvents(CodeTypeDeclaration e) 829private void GenerateFields(CodeTypeDeclaration e) 859private void GenerateSnippetMembers(CodeTypeDeclaration e) 927private void GenerateMethods(CodeTypeDeclaration e) 966private void GenerateNestedTypes(CodeTypeDeclaration e) 971if (en.Current is CodeTypeDeclaration) 977CodeTypeDeclaration currentClass = (CodeTypeDeclaration)en.Current; 1028private void GenerateProperties(CodeTypeDeclaration e) 2022protected abstract void GenerateEvent(CodeMemberEvent e, CodeTypeDeclaration c); 2041protected abstract void GenerateEntryPointMethod(CodeEntryPointMethod e, CodeTypeDeclaration c); 2049protected abstract void GenerateMethod(CodeMemberMethod e, CodeTypeDeclaration c); 2056protected abstract void GenerateProperty(CodeMemberProperty e, CodeTypeDeclaration c); 2063protected abstract void GenerateConstructor(CodeConstructor e, CodeTypeDeclaration c); 2076protected abstract void GenerateTypeStart(CodeTypeDeclaration e); 2082protected abstract void GenerateTypeEnd(CodeTypeDeclaration e);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (8)
93else if (e is CodeTypeDeclaration) 95ValidateTypeDeclaration((CodeTypeDeclaration)e); 205foreach (CodeTypeDeclaration type in e.Types) 211private void ValidateTypeDeclaration(CodeTypeDeclaration e) 215CodeTypeDeclaration savedClass = _currentClass; 226private void ValidateTypeMembers(CodeTypeDeclaration e) 396private void ValidateTypeStart(CodeTypeDeclaration e) 1070private CodeTypeDeclaration _currentClass;
FrameworkFork\Microsoft.CodeDom\Compiler\ICodeGenerator.cs (1)
102void GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (27)
112private CodeTypeDeclaration _currentClass; 873CodeTypeDeclaration dummyClass = new CodeTypeDeclaration(); 909private void GenerateEvents(CodeTypeDeclaration e) 940private void GenerateFields(CodeTypeDeclaration e) 1833private void GenerateEvent(CodeMemberEvent e, CodeTypeDeclaration c) 2040private void GenerateEntryPointMethod(CodeEntryPointMethod e, CodeTypeDeclaration c) 2058private void GenerateMethods(CodeTypeDeclaration e) 2103private void GenerateMethod(CodeMemberMethod e, CodeTypeDeclaration c) 2164private void GenerateProperties(CodeTypeDeclaration e) 2199private void GenerateProperty(CodeMemberProperty e, CodeTypeDeclaration c) 2498private void GenerateConstructors(CodeTypeDeclaration e) 2534private void GenerateConstructor(CodeConstructor e, CodeTypeDeclaration c) 2630private void GenerateType(CodeTypeDeclaration e) 2688foreach (CodeTypeDeclaration c in e.Types) 2704private void GenerateTypeStart(CodeTypeDeclaration e) 2761private void GenerateTypeMember(CodeTypeMember member, CodeTypeDeclaration declaredType) 2768if (member is CodeTypeDeclaration) 2770((ICodeGenerator)this).GenerateCodeFromType((CodeTypeDeclaration)member, _output.InnerWriter, _options); 2852private void GenerateTypeConstructors(CodeTypeDeclaration e) 2882private void GenerateSnippetMembers(CodeTypeDeclaration e) 2932private void GenerateNestedTypes(CodeTypeDeclaration e) 2937if (en.Current is CodeTypeDeclaration) 2943CodeTypeDeclaration currentClass = (CodeTypeDeclaration)en.Current; 3170private void OutputTypeAttributes(CodeTypeDeclaration e) 3249private void GenerateTypeEnd(CodeTypeDeclaration e) 4286void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o)
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDeclaration.cs (2)
61/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/>. 70/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/> with the specified name.
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDeclarationCollection.cs (18)
14/// A collection that stores <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/> objects. 45/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeTypeDeclarationCollection'/> containing any array of <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/> objects. 48public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) 54/// <para>Represents the entry at the specified index of the <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/>.</para> 56public CodeTypeDeclaration this[int index] 60return ((CodeTypeDeclaration)(List[index])); 69/// <para>Adds a <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/> with the specified value to the 72public int Add(CodeTypeDeclaration value) 80public void AddRange(CodeTypeDeclaration[] value) 112/// <see cref='Microsoft.CodeDom.CodeTypeDeclarationCollection'/> contains the specified <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/>.</para> 114public bool Contains(CodeTypeDeclaration value) 123public void CopyTo(CodeTypeDeclaration[] array, int index) 129/// <para>Returns the index of a <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/> in 132public int IndexOf(CodeTypeDeclaration value) 138/// <para>Inserts a <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/> into the <see cref='Microsoft.CodeDom.CodeTypeDeclarationCollection'/> at the specified index.</para> 140public void Insert(int index, CodeTypeDeclaration value) 146/// <para> Removes a specific <see cref='Microsoft.CodeDom.CodeTypeDeclaration'/> from the 149public void Remove(CodeTypeDeclaration value)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (3)
192internal CodeTypeDeclaration ExportTypeDefinition(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit) 202CodeTypeDeclaration codeClass = null; 204foreach (CodeTypeDeclaration type in _code.Types)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (4)
239internal CodeTypeDeclaration ExportEnum(EnumMapping mapping, Type type) 241CodeTypeDeclaration codeClass = new CodeTypeDeclaration(mapping.TypeDesc.Name); 306internal static void ExportConstant(CodeTypeDeclaration codeClass, ConstantMapping constant, Type type, bool init, long enumValue) 383internal void AddPropertyChangedNotifier(CodeTypeDeclaration codeClass)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (5)
92CodeTypeDeclaration codeClass = null; 122private CodeTypeDeclaration ExportStruct(StructMapping mapping) 135CodeTypeDeclaration codeClass = new CodeTypeDeclaration(className); 238private void ExportMember(CodeTypeDeclaration codeClass, MemberMapping member) 258private void ExportProperty(CodeTypeDeclaration codeClass, MemberMapping member, CodeIdentifiers memberScope)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (6)
130CodeTypeDeclaration codeClass = null; 175codeClass = (CodeTypeDeclaration)ExportedClasses[mapping]; 560private CodeTypeDeclaration ExportStruct(StructMapping mapping) 571CodeTypeDeclaration codeClass = new CodeTypeDeclaration(className); 809private void ExportMember(CodeTypeDeclaration codeClass, MemberMapping member, string ns, CodeConstructor ctor) 829private void ExportProperty(CodeTypeDeclaration codeClass, MemberMapping member, string ns, CodeIdentifiers memberScope, CodeConstructor ctor)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (21)
117foreach (CodeTypeDeclaration codeTypeDecl in codeNS.Types) 329CodeTypeDeclaration codeTypeDeclaration = obj as CodeTypeDeclaration; 333CodeTypeDeclaration newCodeTypeDeclaration = DataContractSurrogateCaller.ProcessImportedType( 415CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration; 462private CodeTypeDeclaration GetNestedType(DataContract dataContract, ContractCodeDomInfo contractCodeDomInfo) 482CodeTypeDeclaration containingType = containingContractCodeDomInfo.TypeDeclaration; 496CodeTypeDeclaration type = CreateTypeDeclaration(nestedTypeName, dataContract); 507private static CodeTypeDeclaration CreateTypeDeclaration(string typeName, DataContract dataContract) 509CodeTypeDeclaration typeDecl = new CodeTypeDeclaration(typeName); 753foreach (CodeTypeDeclaration type in ns.Types) 774private bool TypeContainsNestedType(CodeTypeDeclaration containingType, string typeName) 778if (member is CodeTypeDeclaration) 780if (String.Compare(typeName, ((CodeTypeDeclaration)member).Name, StringComparison.OrdinalIgnoreCase) == 0) 796private void AddSerializableAttribute(bool generateSerializable, CodeTypeDeclaration type, ContractCodeDomInfo contractCodeDomInfo) 806CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration; 1023CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration; 1039CodeTypeDeclaration codeTypeDeclaration = contractCodeDomInfo.TypeDeclaration; 1064CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration; 1162CodeTypeDeclaration generatedType = contractCodeDomInfo.TypeDeclaration; 1186CodeTypeDeclaration type = contractCodeDomInfo.TypeDeclaration;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (1)
14internal CodeTypeDeclaration TypeDeclaration;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSurrogateCaller.cs (2)
73internal static CodeTypeDeclaration ProcessImportedType(IDataContractSurrogate surrogate, CodeTypeDeclaration typeDeclaration, CodeCompileUnit compileUnit)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\IDataContractSurrogate.cs (2)
21CodeTypeDeclaration ProcessImportedType(CodeTypeDeclaration typeDeclaration, CodeCompileUnit compileUnit);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (25)
163CodeTypeDeclaration clientType = context.TypeFactory.CreateClassType(); 232private static CodeMemberMethod GenerateClientClassMethod(CodeTypeDeclaration clientType, CodeTypeReference contractTypeRef, CodeMemberMethod method, bool addHelperMethod, CodeTypeReference declaringContractTypeRef) 271CodeTypeDeclaration paramTypeDecl = ServiceContractGenerator.NamespaceHelper.GetCodeType(param.Type); 290CodeTypeDeclaration returnTypeDecl = ServiceContractGenerator.NamespaceHelper.GetCodeType(method.ReturnType); 312private static CodeMethodReturnStatement GenerateParameters(CodeMemberMethod helperMethod, CodeTypeDeclaration codeTypeDeclaration, CodeExpression target, FieldDirection dir) 321CodeTypeDeclaration bodyTypeDecl = ServiceContractGenerator.NamespaceHelper.GetCodeType(field.Type); 371CodeTypeDeclaration typeDeclaration = (CodeTypeDeclaration)typeDeclarationObject; 392foreach (CodeTypeDeclaration codeTypeDeclaration in codeTypeDeclarations) 485private static void GenerateEventAsyncMethods(ServiceContractGenerationContext context, CodeTypeDeclaration clientType, 488CodeTypeDeclaration operationCompletedEventArgsType = CreateOperationCompletedEventArgsType(context, syncMethodName, endMethod); 510private static CodeTypeDeclaration CreateOperationCompletedEventArgsType(ServiceContractGenerationContext context, 519CodeTypeDeclaration argsType = context.TypeFactory.CreateClassType(); 595private static CodeMemberProperty CreateEventAsyncCompletedArgsTypeProperty(CodeTypeDeclaration ownerTypeDecl, 616CodeTypeDeclaration clientType, string syncMethodName, CodeTypeDeclaration operationCompletedEventArgsType) 639CodeTypeDeclaration clientType, string syncMethodName) 651private static CodeMemberMethod CreateBeginOperationMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType, 694CodeTypeDeclaration clientType, string syncMethodName) 706private static CodeMemberMethod CreateEndOperationMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType, string syncMethodName, CodeMemberMethod endMethod) 769CodeTypeDeclaration clientType, string syncMethodName) 781private static CodeMemberMethod CreateOperationCompletedMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType, 782string syncMethodName, CodeTypeDeclaration operationCompletedEventArgsType, CodeMemberEvent operationCompletedEvent) 837private static CodeMemberMethod CreateEventAsyncMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType, 888private static CodeMemberMethod CreateEventAsyncMethodOverload(CodeTypeDeclaration clientType, CodeMemberMethod eventAsyncMethod)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationContractGenerationContext.cs (7)
21private readonly CodeTypeDeclaration _declaringType; 27private OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType) 42public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType, CodeMemberMethod syncMethod, CodeMemberMethod beginMethod, CodeMemberMethod endMethod, CodeMemberMethod taskMethod) 60public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType, CodeMemberMethod syncMethod, CodeMemberMethod beginMethod, CodeMemberMethod endMethod) 75public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType, CodeMemberMethod syncMethod, CodeMemberMethod taskMethod) 87public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType, CodeMemberMethod method) 103public CodeTypeDeclaration DeclaringType
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (5)
311CodeTypeDeclaration typedMessageDecl = _context.Contract.TypeFactory.CreateClassType(); 551private CodeTypeDeclaration _typeDecl; 554internal TypedMessagePartCodeGenerator(CodeTypeDeclaration typeDecl) 589CodeTypeDeclaration wrapperTypeDecl = _context.Contract.TypeFactory.CreateClassType(); 817internal static void GenerateConstructors(CodeTypeDeclaration typeDecl)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerationContext.cs (11)
17private readonly CodeTypeDeclaration _contractType; 18private readonly CodeTypeDeclaration _duplexCallbackType; 22private CodeTypeDeclaration _channelType; 24private CodeTypeDeclaration _clientType; 31public ServiceContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ContractDescription contract, CodeTypeDeclaration contractType) 45public ServiceContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ContractDescription contract, CodeTypeDeclaration contractType, CodeTypeDeclaration duplexCallbackType) 51internal CodeTypeDeclaration ChannelType 63internal CodeTypeDeclaration ClientType 80public CodeTypeDeclaration ContractType 91public CodeTypeDeclaration DuplexCallbackType
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (16)
248CodeTypeDeclaration contract = _typeFactory.CreateInterfaceType(); 251CodeTypeDeclaration callbackContract = null; 271CodeTypeDeclaration declaringType = isCallback ? _context.DuplexCallbackType : _context.ContractType; 438CodeTypeDeclaration channelType = context.TypeFactory.CreateInterfaceType(); 456public CodeTypeDeclaration CreateClassType() 461private CodeTypeDeclaration CreateCodeType(bool isInterface) 463CodeTypeDeclaration codeType = new CodeTypeDeclaration(); 472public CodeTypeDeclaration CreateInterfaceType() 477private void RunDecorators(CodeTypeDeclaration codeType) 487private void AddDebuggerStepThroughAttribute(CodeTypeDeclaration codeType) 495private void AddGeneratedCodeAttribute(CodeTypeDeclaration codeType) 506private void AddInternal(CodeTypeDeclaration codeType) 514private void AddPartial(CodeTypeDeclaration codeType) 758public static CodeTypeDeclaration GetCodeType(CodeTypeReference codeTypeReference) 760return codeTypeReference.UserData[s_referenceKey] as CodeTypeDeclaration; 763static internal CodeTypeReference GetCodeTypeReference(CodeNamespace codeNamespace, CodeTypeDeclaration codeType)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (2)
137public CodeTypeReference AddUnique(CodeTypeDeclaration codeType, string name, string defaultName) 151foreach (CodeTypeDeclaration codeType in _codeNamespace.Types)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
212foreach (CodeTypeDeclaration typeDecl in _codeNamespace.Types)
ImportModule.cs (1)
189foreach (CodeTypeDeclaration type in ns.Types)