Home
last modified time | relevance | path

Searched refs:delegateType (Results 1 – 25 of 424) sorted by relevance

12345678910>>...17

/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Core/Microsoft/Scripting/Ast/
H A DDynamicExpression.cs48 _delegateType = delegateType; in DynamicExpression()
435 : base(delegateType, binder) { in DynamicExpressionN()
478 : base(delegateType, binder) { in DynamicExpression1()
510 : base(delegateType, binder, arg0) { in TypedDynamicExpression1()
524 : base(delegateType, binder) { in DynamicExpression2()
572 : base(delegateType, binder) { in DynamicExpression3()
622 : base(delegateType, binder) { in DynamicExpression4()
902 if (delegateType == null) { in Dynamic()
943 if (delegateType == null) { in Dynamic()
989 if (delegateType == null) { in Dynamic()
[all …]
H A DLambdaExpression.cs55 Type delegateType, in LambdaExpression() argument
62 Debug.Assert(delegateType != null); in LambdaExpression()
67 _delegateType = delegateType; in LambdaExpression()
279 if (TypeUtils.CanCache(delegateType)) { in CreateLambda()
509 ValidateLambdaArgs(delegateType, ref body, paramList); in Lambda()
525 ValidateLambdaArgs(delegateType, ref body, paramList); in Lambda()
534 …if (!typeof(MulticastDelegate).IsAssignableFrom(delegateType) || delegateType == typeof(MulticastD… in ValidateLambdaArgs()
540 if (!ldc.TryGetValue(delegateType, out mi)) { in ValidateLambdaArgs()
541 mi = delegateType.GetMethod("Invoke"); in ValidateLambdaArgs()
542 if (TypeUtils.CanCache(delegateType)) { in ValidateLambdaArgs()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/
H A DDynamicExpression.cs26 DelegateType = delegateType; in DynamicExpression()
489 : base(delegateType, binder) in DynamicExpressionN()
531 : base(delegateType, binder) in DynamicExpression1()
591 : base(delegateType, binder) in DynamicExpression2()
663 : base(delegateType, binder) in DynamicExpression3()
741 : base(delegateType, binder) in DynamicExpression4()
869 ContractUtils.RequiresNotNull(delegateType, nameof(delegateType)); in MakeDynamic()
896 ContractUtils.RequiresNotNull(delegateType, nameof(delegateType)); in MakeDynamic()
926 ContractUtils.RequiresNotNull(delegateType, nameof(delegateType)); in MakeDynamic()
959 ContractUtils.RequiresNotNull(delegateType, nameof(delegateType)); in MakeDynamic()
[all …]
H A DLambdaExpression.cs607 if (!factories.TryGetValue(delegateType, out fastPath)) in CreateLambda()
614 if (delegateType.IsCollectible) in CreateLambda()
860 ValidateLambdaArgs(delegateType, ref body, paramList, nameof(delegateType)); in Lambda()
877 ValidateLambdaArgs(delegateType, ref body, paramList, nameof(delegateType)); in Lambda()
884 ContractUtils.RequiresNotNull(delegateType, nameof(delegateType)); in ValidateLambdaArgs()
887 …if (!typeof(MulticastDelegate).IsAssignableFrom(delegateType) || delegateType == typeof(MulticastD… in ValidateLambdaArgs()
892 … TypeUtils.ValidateType(delegateType, nameof(delegateType), allowByRef: true, allowPointer: true); in ValidateLambdaArgs()
895 if (!ldc.TryGetValue(delegateType, out MethodInfo mi)) in ValidateLambdaArgs()
897 mi = delegateType.GetInvokeMethod(); in ValidateLambdaArgs()
898 if (!delegateType.IsCollectible) in ValidateLambdaArgs()
[all …]
H A DExpression.cs418 …public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable<… in MakeDynamic() argument
419 DynamicExpression.MakeDynamic(delegateType, binder, arguments); in MakeDynamic()
434 …public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression a… in MakeDynamic() argument
435 DynamicExpression.MakeDynamic(delegateType, binder, arg0); in MakeDynamic()
451 …public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression a… in MakeDynamic() argument
452 DynamicExpression.MakeDynamic(delegateType, binder, arg0, arg1); in MakeDynamic()
469 …public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression a… in MakeDynamic() argument
470 DynamicExpression.MakeDynamic(delegateType, binder, arg0, arg1, arg2); in MakeDynamic()
489 DynamicExpression.MakeDynamic(delegateType, binder, arg0, arg1, arg2, arg3); in MakeDynamic()
504 …public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expre… in MakeDynamic() argument
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data.Entity/System/Data/Objects/ELinq/
H A DTypeSystem.cs63 Type delegateType; in GetDelegateType()
66 case 0: delegateType = typeof(Func<>); break; in GetDelegateType()
67 case 1: delegateType = typeof(Func<,>); break; in GetDelegateType()
68 case 2: delegateType = typeof(Func<,,>); break; in GetDelegateType()
69 case 3: delegateType = typeof(Func<,,,>); break; in GetDelegateType()
70 case 4: delegateType = typeof(Func<,,,,>); break; in GetDelegateType()
71 case 5: delegateType = typeof(Func<,,,,,>); break; in GetDelegateType()
72 case 6: delegateType = typeof(Func<,,,,,,>); break; in GetDelegateType()
73 case 7: delegateType = typeof(Func<,,,,,,,>); break; in GetDelegateType()
84 delegateType = delegateType.MakeGenericType(typeArgs); in GetDelegateType()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System/Test/System.CodeDom/
H A DCodeTypeDelegateTest.cs22 CodeTypeDelegate delegateType = new CodeTypeDelegate (string.Empty); in EmptyTypeName()
23 Assert.AreEqual (string.Empty, delegateType.Name); in EmptyTypeName()
29 CodeTypeDelegate delegateType = new CodeTypeDelegate ((string) null); in NullTypeName()
30 Assert.AreEqual (string.Empty, delegateType.Name); in NullTypeName()
36 CodeTypeDelegate delegateType = new CodeTypeDelegate ((string) null); in BaseTypes()
37 Assert.AreEqual (1, delegateType.BaseTypes.Count); in BaseTypes()
38 Assert.AreEqual ("System.Delegate", delegateType.BaseTypes[0].BaseType); in BaseTypes()
44 CodeTypeDelegate delegateType = new CodeTypeDelegate ((string) null); in DefaultReturnType()
45 Assert.AreEqual (typeof(void).FullName, delegateType.ReturnType.BaseType); in DefaultReturnType()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/compmod/system/codedom/
H A DCodeDelegateCreateExpression.cs28 private CodeTypeReference delegateType; field in System.CodeDom.CodeDelegateCreateExpression
45 …public CodeDelegateCreateExpression(CodeTypeReference delegateType, CodeExpression targetObject, s… in CodeDelegateCreateExpression() argument
46 this.delegateType = delegateType; in CodeDelegateCreateExpression()
58 if (delegateType == null) {
59 delegateType = new CodeTypeReference("");
61 return delegateType;
64 delegateType = value;
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Common/src/TypeSystem/Interop/
H A DInteropStateManager.cs46 if (delegateType is ByRefType) in GetOpenStaticDelegateMarshallingThunk()
48 delegateType = delegateType.GetParameterType(); in GetOpenStaticDelegateMarshallingThunk()
51 Debug.Assert(delegateType is MetadataType); in GetOpenStaticDelegateMarshallingThunk()
64 if (delegateType is ByRefType) in GetClosedDelegateMarshallingThunk()
66 delegateType = delegateType.GetParameterType(); in GetClosedDelegateMarshallingThunk()
69 Debug.Assert(delegateType is MetadataType); in GetClosedDelegateMarshallingThunk()
82 if (delegateType is ByRefType) in GetForwardDelegateCreationThunk()
84 delegateType = delegateType.GetParameterType(); in GetForwardDelegateCreationThunk()
87 Debug.Assert(delegateType is MetadataType); in GetForwardDelegateCreationThunk()
95 if (delegateType is ByRefType) in GetPInvokeDelegateWrapper()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corert/src/ILCompiler.Compiler/src/Compiler/
H A DCompilerGeneratedInteropStubManager.cs32 private MethodDesc GetOpenStaticDelegateMarshallingStub(TypeDesc delegateType) in GetOpenStaticDelegateMarshallingStub() argument
37 _delegateMarshalingTypes.Add(delegateType); in GetOpenStaticDelegateMarshallingStub()
41 private MethodDesc GetClosedDelegateMarshallingStub(TypeDesc delegateType) in GetClosedDelegateMarshallingStub() argument
43 var stub = InteropStateManager.GetClosedDelegateMarshallingThunk(delegateType); in GetClosedDelegateMarshallingStub()
46 _delegateMarshalingTypes.Add(delegateType); in GetClosedDelegateMarshallingStub()
49 private MethodDesc GetForwardDelegateCreationStub(TypeDesc delegateType) in GetForwardDelegateCreationStub() argument
51 var stub = InteropStateManager.GetForwardDelegateCreationThunk(delegateType); in GetForwardDelegateCreationStub()
54 _delegateMarshalingTypes.Add(delegateType); in GetForwardDelegateCreationStub()
102 foreach (var delegateType in _delegateMarshalingTypes) in GetDelegateMarshallingThunks()
107 DelegateType = delegateType, in GetDelegateMarshallingThunks()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Primitives/
H A DExportedDelegate.cs28 public virtual Delegate CreateDelegate(Type delegateType) in CreateDelegate() argument
30 Requires.NotNull(delegateType, nameof(delegateType)); in CreateDelegate()
32 if (delegateType == typeof(Delegate) || delegateType == typeof(MulticastDelegate)) in CreateDelegate()
34 delegateType = CreateStandardDelegateType(); in CreateDelegate()
38 return _method.CreateDelegate(delegateType, _instance); in CreateDelegate()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/Interpreter/
H A DLightLambda.cs204 if (_runCache.TryGetValue(delegateType, out fastCtor)) in GetRunDelegateCtor()
208 return MakeRunDelegateCtor(delegateType); in GetRunDelegateCtor()
214 MethodInfo method = delegateType.GetInvokeMethod(); in MakeRunDelegateCtor()
260 if (DelegateHelpers.MakeDelegate(paramTypes) == delegateType) in MakeRunDelegateCtor()
286 … return _runCache[delegateType] = lambda => targetMethod.CreateDelegate(delegateType, lambda); in MakeRunDelegateCtor()
290 private Delegate CreateCustomDelegate(Type delegateType) in CreateCustomDelegate() argument
294 MethodInfo method = delegateType.GetInvokeMethod(); in CreateCustomDelegate()
353 var lambda = Expression.Lambda(delegateType, body, parameters); in CreateCustomDelegate()
359 internal Delegate MakeDelegate(Type delegateType) in MakeDelegate() argument
362 MethodInfo method = delegateType.GetInvokeMethod(); in MakeDelegate()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.ComponentModel.Composition.4.5/src/ComponentModel/System/ComponentModel/Composition/Primitives/
H A DExportedDelegate.cs31 public virtual Delegate CreateDelegate(Type delegateType) in CreateDelegate() argument
33 Requires.NotNull(delegateType, "delegateType"); in CreateDelegate()
35 if (delegateType == typeof(Delegate) || delegateType == typeof(MulticastDelegate)) in CreateDelegate()
37 delegateType = this.CreateStandardDelegateType(); in CreateDelegate()
40 return Delegate.CreateDelegate(delegateType, this._instance, this._method, false); in CreateDelegate()
/dports/security/beid/eid-mw-5.0.8/doc/sdk/wrappers/C# pkcs11wrappers/pkcs11net/Pkcs11/Wrapper/
H A DDelegateUtil.cs29 public static Delegate GetDelegate(IntPtr hLib, Type delegateType){ in GetDelegate() argument
33 IntPtr fp = (IntPtr)flist.GetType().GetField(delegateType.Name).GetValue(flist); in GetDelegate()
34 …if (fp == IntPtr.Zero) { throw new Exception("Bad pointer to "+delegateType.Name + " function."); } in GetDelegate()
37 IntPtr fp = KernelUtil.GetProcAddress(hLib, delegateType.Name); in GetDelegate()
38 if (fp == IntPtr.Zero) { throw new Exception(delegateType.Name + " could not be found"); } in GetDelegate()
41 return Marshal.GetDelegateForFunctionPointer(fp, delegateType); in GetDelegate()
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/MethodInfos/
H A DRuntimeMethodInfo.cs63 public sealed override Delegate CreateDelegate(Type delegateType) in CreateDelegate() argument
67 ReflectionTrace.MethodInfo_CreateDelegate(this, delegateType); in CreateDelegate()
70 return CreateDelegateWorker(delegateType, null, allowClosed: false); in CreateDelegate()
74 public sealed override Delegate CreateDelegate(Type delegateType, Object target) in CreateDelegate() argument
78 ReflectionTrace.MethodInfo_CreateDelegate(this, delegateType, target); in CreateDelegate()
81 return CreateDelegateWorker(delegateType, target, allowClosed: true); in CreateDelegate()
84 private Delegate CreateDelegateWorker(Type delegateType, object target, bool allowClosed) in CreateDelegateWorker() argument
86 if (delegateType == null) in CreateDelegateWorker()
87 throw new ArgumentNullException(nameof(delegateType)); in CreateDelegateWorker()
89 if (!(delegateType is RuntimeTypeInfo runtimeDelegateType)) in CreateDelegateWorker()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Activities/System/Activities/Runtime/
H A DCallbackWrapper.cs133 … protected void EnsureCallback(Type delegateType, Type[] parameterTypes, Type genericParameter) in EnsureCallback() argument
138 this.callback = GenerateCallback(delegateType, parameterTypes, genericParameter); in EnsureCallback()
146 …protected void ValidateCallbackResolution(Type delegateType, Type[] parameterTypes, Type genericPa… in ValidateCallbackResolution() argument
150 … if (!this.callback.Equals(GenerateCallback(delegateType, parameterTypes, genericParameter))) in ValidateCallbackResolution()
199 Delegate GenerateCallback(Type delegateType, Type[] parameterTypes, Type genericParameter) in GenerateCallback() argument
215 return RecreateCallback(delegateType, methodInfo); in GenerateCallback()
220 protected void EnsureCallback(Type delegateType, Type[] parameters) in EnsureCallback() argument
230 this.callback = RecreateCallback(delegateType, methodInfo); in EnsureCallback()
268 Delegate RecreateCallback(Type delegateType, MethodInfo callbackMethod) in RecreateCallback() argument
293 return Delegate.CreateDelegate(delegateType, targetInstance, callbackMethod); in RecreateCallback()
/dports/lang/mono/mono-5.10.1.57/mcs/mcs/
H A Dlambda.cs60 …tersCompiled ResolveParameters (ResolveContext ec, TypeInferenceContext tic, TypeSpec delegateType) in ResolveParameters() argument
62 if (!delegateType.IsDelegate) in ResolveParameters()
65 AParametersCollection d_params = Delegate.GetParameters (delegateType); in ResolveParameters()
68 if (!VerifyExplicitParameters (ec, tic, delegateType, d_params)) in ResolveParameters()
78 if (!VerifyParameterCompatibility (ec, tic, delegateType, d_params, ec.IsInProbingMode)) in ResolveParameters()
106 …mousMethodBody CompatibleMethodFactory (TypeSpec returnType, TypeSpec delegateType, ParametersComp… in CompatibleMethodFactory() argument
108 return new LambdaMethod (p, b, returnType, delegateType, loc); in CompatibleMethodFactory()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Linq.Expressions/src/System/Dynamic/Utils/
H A DDelegateHelpers.cs15 …internal static Delegate CreateObjectArrayDelegate(Type delegateType, Func<object[], object> handl… in CreateObjectArrayDelegate() argument
18 return CreateObjectArrayDelegateRefEmit(delegateType, handler); in CreateObjectArrayDelegate()
20 …Internal.Runtime.Augments.DynamicDelegateAugments.CreateObjectArrayDelegate(delegateType, handler); in CreateObjectArrayDelegate()
43 …private static Delegate CreateObjectArrayDelegateRefEmit(Type delegateType, Func<object[], object>… in CreateObjectArrayDelegateRefEmit() argument
45 MethodInfo delegateInvokeMethod = delegateType.GetInvokeMethod(); in CreateObjectArrayDelegateRefEmit()
146 return thunkMethod.CreateDelegate(delegateType, handler); in CreateObjectArrayDelegateRefEmit()
/dports/lang/mono/mono-5.10.1.57/external/rx/Rx/NET/Source/System.Reactive.Linq/Reactive/Internal/
H A DReflectionUtils.cs25 public static Delegate CreateDelegate(Type delegateType, object o, MethodInfo method) in CreateDelegate() argument
28 return method.CreateDelegate(delegateType, o); in CreateDelegate()
30 return Delegate.CreateDelegate(delegateType, o, method); in CreateDelegate()
34 …Name, out MethodInfo addMethod, out MethodInfo removeMethod, out Type delegateType, out bool isWin…
83 delegateType = psa[0].ParameterType;
85 var invokeMethod = delegateType.GetMethod("Invoke");
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Core/Microsoft/Scripting/Utils/
H A DTypeExtensions.cs29 …internal static Delegate CreateDelegate(this MethodInfo methodInfo, Type delegateType, object targ… in CreateDelegate() argument
30 Debug.Assert(methodInfo != null && delegateType != null); in CreateDelegate()
34 return dm.CreateDelegate(delegateType, target); in CreateDelegate()
36 return Delegate.CreateDelegate(delegateType, target, methodInfo); in CreateDelegate()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Workflow.Activities/
H A DCorrelationValidator.cs409 Type delegateType = null; in ValidateHostInterfaceMembers()
413 delegateType = eventInfo.EventHandlerType; in ValidateHostInterfaceMembers()
414 if (delegateType == null) in ValidateHostInterfaceMembers()
417 if (delegateType == null) in ValidateHostInterfaceMembers()
420 methodInfo = delegateType.GetMethod("Invoke"); in ValidateHostInterfaceMembers()
541 if (delegateTypeCorrelationAliasAttrs[delegateType] == null) in ValidateHostInterfaceAttributes()
659 method = delegateType.GetMethod("Invoke"); in FetchParameterType()
850 Type delegateType = eventInfo.EventHandlerType; in Validate()
851 if (delegateType == null) in Validate()
852 delegateType = TypeProvider.GetEventHandlerType(eventInfo); in Validate()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Data.Linq/src/DbLinq/Data/Linq/Mapping/
H A DLambdaMetaAccessor.cs17 Type delegateType = typeof(Action<,>).MakeGenericType(declaringType, memberType); in MakeSetter()
24 return Delegate.CreateDelegate(delegateType, method); in MakeSetter()
44 return m.CreateDelegate(delegateType); in MakeSetter()
47 return Delegate.CreateDelegate(delegateType, (MethodInfo)member); in MakeSetter()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.CodeDom/tests/CodeExpressions/
H A DCodeDelegateCreateExpressionTests.cs31 public void Ctor(CodeTypeReference delegateType, CodeExpression targetObject, string methodName) in Ctor() argument
33 var delegateCreate = new CodeDelegateCreateExpression(delegateType, targetObject, methodName); in Ctor()
34 …Assert.Equal((delegateType ?? new CodeTypeReference("")).BaseType, delegateCreate.DelegateType.Bas… in Ctor()
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/MethodInvokers/
H A DVirtualMethodInvoker.cs29 …public sealed override Delegate CreateDelegate(RuntimeTypeHandle delegateType, Object target, bool… in CreateDelegate() argument
36 delegateType, in CreateDelegate()
46 delegateType, in CreateDelegate()
H A DInstanceMethodInvoker.cs50 …public sealed override Delegate CreateDelegate(RuntimeTypeHandle delegateType, Object target, bool… in CreateDelegate() argument
65 delegateType, in CreateDelegate()
73 return base.CreateDelegate(delegateType, target, isStatic, isVirtual, isOpen); in CreateDelegate()

12345678910>>...17