3 types derived from CodeMemberMethod
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.CodeDom\System\CodeConstructor.cs (1)
23
public class CodeConstructor :
CodeMemberMethod
FrameworkFork\Microsoft.CodeDom\System\CodeEntryPointMethod.cs (1)
23
public class CodeEntryPointMethod :
CodeMemberMethod
FrameworkFork\Microsoft.CodeDom\System\CodeTypeConstructor.cs (1)
23
public class CodeTypeConstructor :
CodeMemberMethod
28 instantiations of CodeMemberMethod
dotnet-svcutil-lib (28)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (3)
190
CodeMemberMethod getSchemaMethod = new
CodeMemberMethod
();
207
CodeMemberMethod writeXml = new
CodeMemberMethod
();
238
CodeMemberMethod readXml = new
CodeMemberMethod
();
CodeDomFixup\CodeDomHelpers.cs (1)
64
CodeMemberMethod m = new
CodeMemberMethod
();
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
32
CodeMemberMethod implMethod = new
CodeMemberMethod
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
244
CodeMemberMethod operationCompletedMethod = new
CodeMemberMethod
();
422
CodeMemberMethod m = new
CodeMemberMethod
();
CodeDomFixup\MethodCreationHelper.cs (4)
25
this.GetEndpointAddress = new
CodeMemberMethod
34
this.GetBinding = new
CodeMemberMethod
2174
this.GetDefaultBinding = new
CodeMemberMethod
2181
this.GetDefaultEndpointAddress = new
CodeMemberMethod
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
406
CodeMemberMethod raisePropertyChangedEventMethod = new
CodeMemberMethod
();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (5)
1582
CodeMemberMethod readXmlMethod = new
CodeMemberMethod
();
1604
CodeMemberMethod writeXmlMethod = new
CodeMemberMethod
();
1626
CodeMemberMethod getSchemaMethod = new
CodeMemberMethod
();
1640
CodeMemberMethod getSchemaStaticMethod = new
CodeMemberMethod
();
1702
CodeMemberMethod raisePropertyChangedEventMethod = new
CodeMemberMethod
();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (7)
264
CodeMemberMethod helperMethod = new
CodeMemberMethod
();
471
CodeMemberMethod m = new
CodeMemberMethod
();
654
CodeMemberMethod onBeginOperationMethod = new
CodeMemberMethod
();
708
CodeMemberMethod onEndOperationMethod = new
CodeMemberMethod
();
784
CodeMemberMethod operationCompletedMethod = new
CodeMemberMethod
();
843
CodeMemberMethod eventAsyncMethod = new
CodeMemberMethod
();
890
CodeMemberMethod eventAsyncMethodOverload = new
CodeMemberMethod
();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (4)
278
CodeMemberMethod syncMethod = new
CodeMemberMethod
();
287
beginMethod = new
CodeMemberMethod
();
294
endMethod = new
CodeMemberMethod
();
321
CodeMemberMethod taskBasedAsyncMethod = new
CodeMemberMethod
{ Name = syncMethodName + ServiceReflector.AsyncMethodNameSuffix };
148 references to CodeMemberMethod
dotnet-svcutil-lib (148)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (3)
190
CodeMemberMethod
getSchemaMethod = new CodeMemberMethod();
207
CodeMemberMethod
writeXml = new CodeMemberMethod();
238
CodeMemberMethod
readXml = new CodeMemberMethod();
CodeDomFixup\CodeDomHelpers.cs (12)
46
internal static
CodeMemberMethod
FindMethodByName(CodeTypeMemberCollection members, string methodName)
48
return CollectionHelpers.Find<
CodeMemberMethod
>(
50
delegate (
CodeMemberMethod
method)
57
internal static
CodeMemberMethod
GetTaskAsyncMethodForMethod(CodeTypeMemberCollection members,
CodeMemberMethod
method)
62
internal static
CodeMemberMethod
GetImplementationOfMethod(CodeTypeReference ifaceType,
CodeMemberMethod
method)
64
CodeMemberMethod
m = new CodeMemberMethod();
78
private static string GetMethodNameBase(
CodeMemberMethod
method)
93
internal static bool IsTaskAsyncMethod(
CodeMemberMethod
method)
100
internal static bool IsBeginMethod(
CodeMemberMethod
method)
110
internal static bool IsEndMethod(
CodeMemberMethod
method)
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (2)
26
private
CodeMemberMethod
GenerateTaskBasedAsyncMethod(string methodName, NameScope nameScope)
32
CodeMemberMethod
implMethod = new CodeMemberMethod
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
287
protected override void Visit(
CodeMemberMethod
method)
737
else if (member is
CodeMemberMethod
)
738
Visit((
CodeMemberMethod
)member);
750
protected virtual void Visit(
CodeMemberMethod
method)
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (13)
77
CollectionHelpers.MapList<
CodeMemberMethod
>(
79
delegate (
CodeMemberMethod
method)
216
foreach (
CodeMemberMethod
method in callbackInterface.Members)
232
CodeMemberMethod
member = CreateOperationReceivedMethod(nameScope, method, eventArgs, evt);
241
private static
CodeMemberMethod
CreateOperationReceivedMethod(CodeTypeNameScope nameScope,
CodeMemberMethod
syncMethod,
244
CodeMemberMethod
operationCompletedMethod = new CodeMemberMethod();
312
private static CodeMemberEvent CreateOperationReceivedEvent(CodeTypeNameScope nameScope,
CodeMemberMethod
syncMethod,
333
private static CodeTypeDeclaration CreateOperationReceivedEventArgsType(CodeTypeNameScope nameScope,
CodeMemberMethod
syncMethod)
422
CodeMemberMethod
m = new CodeMemberMethod();
450
foreach (
CodeMemberMethod
method in callbackInterface.Members)
453
CodeMemberMethod
m = CodeDomHelpers.GetImplementationOfMethod(callbackImpl.BaseTypes[1], method);
520
private static bool IsSyncOperationContract(
CodeMemberMethod
method)
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (2)
28
CollectionHelpers.MapList<
CodeMemberMethod
>(type.Members, MapMethodFirstPass, null);
34
private bool MapMethodFirstPass(
CodeMemberMethod
method)
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromClientClass.cs (2)
15
CollectionHelpers.MapList<
CodeMemberMethod
>(
17
delegate (
CodeMemberMethod
method)
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromInterface.cs (4)
16
CollectionHelpers.MapList<
CodeMemberMethod
>(
18
delegate (
CodeMemberMethod
method)
28
private void CopyAttrsToTaskAsyncMethod(
CodeMemberMethod
syncMethod, int index)
30
CodeMemberMethod
taskAyncMethod = CodeDomHelpers.GetTaskAsyncMethodForMethod(CurrentType.Members, syncMethod);
CodeDomFixup\MethodCreationHelper.cs (4)
46
private
CodeMemberMethod
GetEndpointAddress { get; set; }
48
private
CodeMemberMethod
GetBinding { get; set; }
50
private
CodeMemberMethod
GetDefaultEndpointAddress { get; set; }
52
private
CodeMemberMethod
GetDefaultBinding { get; set; }
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (6)
329
else if (member is
CodeMemberMethod
)
345
GenerateMethod((
CodeMemberMethod
)member, declaredType);
932
if (en.Current is
CodeMemberMethod
947
CodeMemberMethod
imp = (
CodeMemberMethod
)en.Current;
2049
protected abstract void GenerateMethod(
CodeMemberMethod
e, CodeTypeDeclaration c);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (4)
81
else if (e is
CodeMemberMethod
)
83
ValidateMemberMethod((
CodeMemberMethod
)e);
334
private void ValidateMemberMethod(
CodeMemberMethod
e)
365
private void ValidateMethod(
CodeMemberMethod
e)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (6)
2063
if (en.Current is
CodeMemberMethod
2078
CodeMemberMethod
imp = (
CodeMemberMethod
)en.Current;
2103
private void GenerateMethod(
CodeMemberMethod
e, CodeTypeDeclaration c)
2799
else if (member is
CodeMemberMethod
)
2815
GenerateMethod((
CodeMemberMethod
)member, declaredType);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (2)
402
internal static
CodeMemberMethod
RaisePropertyChangedEventMethod
406
CodeMemberMethod
raisePropertyChangedEventMethod = new CodeMemberMethod();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (11)
1043
CodeMemberMethod
raisePropertyChangedEventMethod = RaisePropertyChangedEventMethod;
1578
private
CodeMemberMethod
ReadXmlMethod
1582
CodeMemberMethod
readXmlMethod = new CodeMemberMethod();
1600
private
CodeMemberMethod
WriteXmlMethod
1604
CodeMemberMethod
writeXmlMethod = new CodeMemberMethod();
1622
private
CodeMemberMethod
GetSchemaMethod
1626
CodeMemberMethod
getSchemaMethod = new CodeMemberMethod();
1636
private
CodeMemberMethod
GetSchemaStaticMethod
1640
CodeMemberMethod
getSchemaStaticMethod = new CodeMemberMethod();
1698
private
CodeMemberMethod
RaisePropertyChangedEventMethod
1702
CodeMemberMethod
raisePropertyChangedEventMethod = new CodeMemberMethod();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (43)
212
CodeMemberMethod
beginMethod = GenerateClientClassMethod(clientType, contractTypeRef, operationContext.BeginMethod, _tryAddHelperMethod, declaringContractTypeRef);
213
CodeMemberMethod
endMethod = GenerateClientClassMethod(clientType, contractTypeRef, operationContext.EndMethod, _tryAddHelperMethod, declaringContractTypeRef);
232
private static
CodeMemberMethod
GenerateClientClassMethod(CodeTypeDeclaration clientType, CodeTypeReference contractTypeRef,
CodeMemberMethod
method, bool addHelperMethod, CodeTypeReference declaringContractTypeRef)
234
CodeMemberMethod
methodImpl = GetImplementationOfMethod(contractTypeRef, method);
237
CodeMemberMethod
helperMethod = null;
262
private static
CodeMemberMethod
GenerateHelperMethod(CodeTypeReference ifaceType,
CodeMemberMethod
method)
264
CodeMemberMethod
helperMethod = new CodeMemberMethod();
312
private static CodeMethodReturnStatement GenerateParameters(
CodeMemberMethod
helperMethod, CodeTypeDeclaration codeTypeDeclaration, CodeExpression target, FieldDirection dir)
444
CodeMemberMethod
method = (
CodeMemberMethod
)methodObject;
456
private static void AddMethodImpl(
CodeMemberMethod
method)
469
private static
CodeMemberMethod
GetImplementationOfMethod(CodeTypeReference ifaceType,
CodeMemberMethod
method)
471
CodeMemberMethod
m = new CodeMemberMethod();
486
string syncMethodName,
CodeMemberMethod
beginMethod,
CodeMemberMethod
endMethod)
492
CodeMemberMethod
beginOperationMethod = CreateBeginOperationMethod(context, clientType, syncMethodName, beginMethod);
495
CodeMemberMethod
endOperationMethod = CreateEndOperationMethod(context, clientType, syncMethodName, endMethod);
498
CodeMemberMethod
operationCompletedMethod = CreateOperationCompletedMethod(context, clientType, syncMethodName, operationCompletedEventArgsType, operationCompletedEvent);
500
CodeMemberMethod
eventAsyncMethod = CreateEventAsyncMethod(context, clientType, syncMethodName, beginMethod,
511
string syncMethodName,
CodeMemberMethod
endMethod)
583
private static int GetAsyncResultParamIndex(
CodeMemberMethod
endMethod)
651
private static
CodeMemberMethod
CreateBeginOperationMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
652
string syncMethodName,
CodeMemberMethod
beginMethod)
654
CodeMemberMethod
onBeginOperationMethod = new CodeMemberMethod();
706
private static
CodeMemberMethod
CreateEndOperationMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType, string syncMethodName,
CodeMemberMethod
endMethod)
708
CodeMemberMethod
onEndOperationMethod = new CodeMemberMethod();
781
private static
CodeMemberMethod
CreateOperationCompletedMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
784
CodeMemberMethod
operationCompletedMethod = new CodeMemberMethod();
837
private static
CodeMemberMethod
CreateEventAsyncMethod(ServiceContractGenerationContext context, CodeTypeDeclaration clientType,
838
string syncMethodName,
CodeMemberMethod
beginMethod,
839
CodeMemberField beginOperationDelegate,
CodeMemberMethod
beginOperationMethod,
840
CodeMemberField endOperationDelegate,
CodeMemberMethod
endOperationMethod,
841
CodeMemberField operationCompletedDelegate,
CodeMemberMethod
operationCompletedMethod)
843
CodeMemberMethod
eventAsyncMethod = new CodeMemberMethod();
888
private static
CodeMemberMethod
CreateEventAsyncMethodOverload(CodeTypeDeclaration clientType,
CodeMemberMethod
eventAsyncMethod)
890
CodeMemberMethod
eventAsyncMethodOverload = new CodeMemberMethod();
919
private static CodeStatement CreateDelegateIfNotNull(CodeMemberField delegateField,
CodeMemberMethod
delegateMethod)
993
private static bool IsVoid(
CodeMemberMethod
method)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationContractGenerationContext.cs (18)
15
private readonly
CodeMemberMethod
_syncMethod;
16
private readonly
CodeMemberMethod
_beginMethod;
18
private readonly
CodeMemberMethod
_endMethod;
22
private readonly
CodeMemberMethod
_taskMethod;
42
public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType,
CodeMemberMethod
syncMethod,
CodeMemberMethod
beginMethod,
CodeMemberMethod
endMethod,
CodeMemberMethod
taskMethod)
60
public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType,
CodeMemberMethod
syncMethod,
CodeMemberMethod
beginMethod,
CodeMemberMethod
endMethod)
75
public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType,
CodeMemberMethod
syncMethod,
CodeMemberMethod
taskMethod)
87
public OperationContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ServiceContractGenerationContext contract, OperationDescription operation, CodeTypeDeclaration declaringType,
CodeMemberMethod
method)
114
public
CodeMemberMethod
BeginMethod
119
public
CodeMemberMethod
EndMethod
124
public
CodeMemberMethod
TaskMethod
129
public
CodeMemberMethod
SyncMethod
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (6)
101
private
CodeMemberMethod
_method;
102
private
CodeMemberMethod
_endMethod;
220
CodeMemberMethod
method = _method;
226
CodeMemberMethod
endMethod = _endMethod;
412
internal ParameterizedMethodGenerator(
CodeMemberMethod
beginMethod,
CodeMemberMethod
endMethod)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (6)
278
CodeMemberMethod
syncMethod = new CodeMemberMethod();
283
CodeMemberMethod
beginMethod = null;
284
CodeMemberMethod
endMethod = null;
321
CodeMemberMethod
taskBasedAsyncMethod = new CodeMemberMethod { Name = syncMethodName + ServiceReflector.AsyncMethodNameSuffix };
593
CodeMemberMethod
methodDecl = context.SyncMethod ?? context.BeginMethod;
817
CodeMemberMethod
methodDecl = context.SyncMethod ?? context.BeginMethod;