1 type derived from CodeTypeDeclaration
System (1)
45 instantiations of CodeTypeDeclaration
Microsoft.Activities.Build (1)
PresentationBuildTasks (2)
System (2)
System.Activities (2)
System.Data (4)
System.Data.Entity.Design (3)
System.Data.Services.Design (2)
System.Data.SqlXml (2)
System.Management (7)
System.Runtime.Serialization (1)
System.ServiceModel (1)
System.ServiceModel.Activation (1)
System.Web (9)
System.Web.Services (2)
System.Workflow.Activities (1)
System.Xml (3)
XamlBuildTask (2)
427 references to CodeTypeDeclaration
Microsoft.Activities.Build (1)
PresentationBuildTasks (7)
System (94)
compmod\microsoft\csharp\csharpcodeprovider.cs (27)
108private CodeTypeDeclaration currentClass;
816CodeTypeDeclaration dummyClass = new CodeTypeDeclaration();
849private void GenerateEvents(CodeTypeDeclaration e) {
874private void GenerateFields(CodeTypeDeclaration e) {
1637private void GenerateEvent(CodeMemberEvent e, CodeTypeDeclaration c) {
1801private void GenerateEntryPointMethod(CodeEntryPointMethod e, CodeTypeDeclaration c) {
1818private void GenerateMethods(CodeTypeDeclaration e) {
1855private void GenerateMethod(CodeMemberMethod e, CodeTypeDeclaration c) {
1908private void GenerateProperties(CodeTypeDeclaration e) {
1937private void GenerateProperty(CodeMemberProperty e, CodeTypeDeclaration c) {
2199private void GenerateConstructors(CodeTypeDeclaration e) {
2229private void GenerateConstructor(CodeConstructor e, CodeTypeDeclaration c) {
2317private void GenerateType(CodeTypeDeclaration e) {
2370foreach (CodeTypeDeclaration c in e.Types) {
2384private void GenerateTypeStart(CodeTypeDeclaration e) {
2432private void GenerateTypeMember(CodeTypeMember member, CodeTypeDeclaration declaredType) {
2438if (member is CodeTypeDeclaration) {
2439((ICodeGenerator)this).GenerateCodeFromType((CodeTypeDeclaration)member, output.InnerWriter, options);
2509private void GenerateTypeConstructors(CodeTypeDeclaration e) {
2533private void GenerateSnippetMembers(CodeTypeDeclaration e) {
2577private void GenerateNestedTypes(CodeTypeDeclaration e) {
2580if (en.Current is CodeTypeDeclaration) {
2584CodeTypeDeclaration currentClass = (CodeTypeDeclaration)en.Current;
2776private void OutputTypeAttributes(CodeTypeDeclaration e) {
2843private void GenerateTypeEnd(CodeTypeDeclaration e) {
3868void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) {
compmod\system\codedom\compiler\CodeGenerator.cs (27)
34private CodeTypeDeclaration currentClass;
44protected CodeTypeDeclaration CurrentClass {
206private void GenerateType(CodeTypeDeclaration e) {
257private void GenerateTypeMember(CodeTypeMember member, CodeTypeDeclaration declaredType) {
263if (member is CodeTypeDeclaration) {
264((ICodeGenerator)this).GenerateCodeFromType((CodeTypeDeclaration)member, output.InnerWriter, options);
334private void GenerateTypeConstructors(CodeTypeDeclaration e) {
373foreach (CodeTypeDeclaration c in e.Types) {
387void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) {
514CodeTypeDeclaration dummyClass = new CodeTypeDeclaration();
550private void GenerateConstructors(CodeTypeDeclaration e) {
574private void GenerateEvents(CodeTypeDeclaration e) {
687private void GenerateFields(CodeTypeDeclaration e) {
711private void GenerateSnippetMembers(CodeTypeDeclaration e) {
772private void GenerateMethods(CodeTypeDeclaration e) {
803private void GenerateNestedTypes(CodeTypeDeclaration e) {
806if (en.Current is CodeTypeDeclaration) {
810CodeTypeDeclaration currentClass = (CodeTypeDeclaration)en.Current;
857private void GenerateProperties(CodeTypeDeclaration e) {
1747protected abstract void GenerateEvent(CodeMemberEvent e, CodeTypeDeclaration c);
1766protected abstract void GenerateEntryPointMethod(CodeEntryPointMethod e, CodeTypeDeclaration c);
1774protected abstract void GenerateMethod(CodeMemberMethod e, CodeTypeDeclaration c);
1781protected abstract void GenerateProperty(CodeMemberProperty e, CodeTypeDeclaration c);
1788protected abstract void GenerateConstructor(CodeConstructor e, CodeTypeDeclaration c);
1801protected abstract void GenerateTypeStart(CodeTypeDeclaration e);
1807protected abstract void GenerateTypeEnd(CodeTypeDeclaration e);
System.Activities (10)
System.Data (11)
System.Data.Entity.Design (34)
System.Data.Services.Design (35)
System.Data.SqlXml (6)
System.Management (16)
System.Runtime.Serialization (27)
System.ServiceModel (69)
System\ServiceModel\Description\ClientClassGenerator.cs (25)
163CodeTypeDeclaration clientType = context.TypeFactory.CreateClassType();
232static 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)
485static void GenerateEventAsyncMethods(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
488CodeTypeDeclaration operationCompletedEventArgsType = CreateOperationCompletedEventArgsType(context, syncMethodName, endMethod);
510static CodeTypeDeclaration CreateOperationCompletedEventArgsType(ServiceContractGenerationContext context,
519CodeTypeDeclaration argsType = context.TypeFactory.CreateClassType();
596static CodeMemberProperty CreateEventAsyncCompletedArgsTypeProperty(CodeTypeDeclaration ownerTypeDecl,
617CodeTypeDeclaration clientType, string syncMethodName, CodeTypeDeclaration operationCompletedEventArgsType)
640CodeTypeDeclaration clientType, string syncMethodName)
652static CodeMemberMethod CreateBeginOperationMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
695CodeTypeDeclaration clientType, string syncMethodName)
707static CodeMemberMethod CreateEndOperationMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType, string syncMethodName, CodeMemberMethod endMethod)
770CodeTypeDeclaration clientType, string syncMethodName)
782static CodeMemberMethod CreateOperationCompletedMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
783string syncMethodName, CodeTypeDeclaration operationCompletedEventArgsType, CodeMemberEvent operationCompletedEvent)
838static CodeMemberMethod CreateEventAsyncMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
889static CodeMemberMethod CreateEventAsyncMethodOverload(CodeTypeDeclaration clientType, CodeMemberMethod eventAsyncMethod)
System\ServiceModel\Description\OperationContractGenerationContext.cs (7)
21readonly CodeTypeDeclaration declaringType;
27OperationContractGenerationContext(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
System.ServiceModel.Activation (1)
System.Web (25)
System.Web.Extensions (5)
System.Web.Services (27)
System\Web\Services\Description\WebCodeGenerator.cs (12)
104internal static CodeTypeMember AddMember(CodeTypeDeclaration codeClass, string typeName, string memberName, CodeExpression initializer, CodeAttributeDeclarationCollection metadata, CodeFlags flags, CodeGenerationOptions options) {
136internal static CodeConstructor AddConstructor(CodeTypeDeclaration codeClass, string[] parameterTypeNames, string[] parameterNames, CodeAttributeDeclarationCollection metadata, CodeFlags flags) {
155internal static CodeMemberMethod AddMethod(CodeTypeDeclaration codeClass, string methodName,
164internal static CodeMemberMethod AddMethod(CodeTypeDeclaration codeClass, string methodName,
199internal static CodeTypeDeclaration AddClass(CodeNamespace codeNamespace, string className, string baseClassName, string[] implementedInterfaceNames, CodeAttributeDeclarationCollection metadata, CodeFlags flags, bool isPartial) {
200CodeTypeDeclaration codeClass = CreateClass(className, baseClassName, implementedInterfaceNames, metadata, flags, isPartial);
205internal static CodeTypeDeclaration CreateClass(string className, string baseClassName, string[] implementedInterfaceNames, CodeAttributeDeclarationCollection metadata, CodeFlags flags, bool isPartial) {
206CodeTypeDeclaration codeClass = new CodeTypeDeclaration(className);
286internal static void AddCallbackImplementation(CodeTypeDeclaration codeClass, string callbackName, string handlerName, string handlerArgs, bool methodHasOutParameters) {
314internal static CodeMemberMethod AddAsyncMethod(CodeTypeDeclaration codeClass, string methodName,
349internal static CodeTypeDeclaration CreateArgsClass(string name, string[] paramTypes, string[] paramNames, bool isPartial) {
350CodeTypeDeclaration codeClass = new CodeTypeDeclaration(name);
System.Workflow.Activities (9)
System.Workflow.ComponentModel (24)
System.Xml (18)
XamlBuildTask (8)