6 instantiations of ComMethodDesc
Microsoft.CSharp (6)
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (6)
157
_comTypeDesc.EnsureGetItem(new
ComMethodDesc
(name, ComDispIds.DISPID_VALUE, ComTypes.INVOKEKIND.INVOKE_PROPERTYGET));
188
_comTypeDesc.EnsureSetItem(new
ComMethodDesc
(name, ComDispIds.DISPID_VALUE, ComTypes.INVOKEKIND.INVOKE_PROPERTYPUT));
216
ComMethodDesc cmd = new
ComMethodDesc
(name, dispId, ComTypes.INVOKEKIND.INVOKE_FUNC);
241
ComMethodDesc put = new
ComMethodDesc
(name, dispId, ComTypes.INVOKEKIND.INVOKE_PROPERTYPUT);
244
ComMethodDesc putref = new
ComMethodDesc
(name, dispId, ComTypes.INVOKEKIND.INVOKE_PROPERTYPUTREF);
564
ComMethodDesc method = new
ComMethodDesc
(typeInfo, funcDesc);
54 references to ComMethodDesc
Microsoft.CSharp (54)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComInvokeBinder.cs (5)
19
private readonly
ComMethodDesc
_methodDesc;
51
ComMethodDesc
methodDesc)
59
Debug.Assert(TypeUtils.AreReferenceAssignable(typeof(
ComMethodDesc
), method.Type));
402
Expression.Property(_method, typeof(
ComMethodDesc
).GetProperty(nameof(
ComMethodDesc
.DispId)))
Microsoft\CSharp\RuntimeBinder\ComInterop\ComRuntimeHelpers.cs (1)
220
public static DispCallable CreateDispCallable(IDispatchComObject dispatch,
ComMethodDesc
method)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeDesc.cs (18)
17
private
ComMethodDesc
_getItem;
18
private
ComMethodDesc
_setItem;
70
internal bool TryGetFunc(string name, out
ComMethodDesc
method)
75
method = Funcs[name] as
ComMethodDesc
;
82
internal void AddFunc(string name,
ComMethodDesc
method)
91
internal bool TryGetPut(string name, out
ComMethodDesc
method)
96
method = Puts[name] as
ComMethodDesc
;
103
internal void AddPut(string name,
ComMethodDesc
method)
112
internal bool TryGetPutRef(string name, out
ComMethodDesc
method)
117
method = PutRefs[name] as
ComMethodDesc
;
123
internal void AddPutRef(string name,
ComMethodDesc
method)
144
foreach (
ComMethodDesc
func in Funcs.Values)
157
foreach (
ComMethodDesc
func in Puts.Values)
168
foreach (
ComMethodDesc
func in PutRefs.Values)
202
internal
ComMethodDesc
GetItem => _getItem;
204
internal void EnsureGetItem(
ComMethodDesc
candidate)
209
internal
ComMethodDesc
SetItem => _setItem;
211
internal void EnsureSetItem(
ComMethodDesc
candidate)
Microsoft\CSharp\RuntimeBinder\ComInterop\DispCallableMetaObject.cs (3)
39
if (target.TryGetMemberMethod(name, out
ComMethodDesc
method) ||
55
if (target.TryGetPropertySetter(name, out
ComMethodDesc
method, value.LimitType, holdsNull) ||
73
private DynamicMetaObject BindComInvoke(
ComMethodDesc
method, DynamicMetaObject[] indexes, CallInfo callInfo, bool[] isByRef)
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (19)
134
internal bool TryGetGetItem(out
ComMethodDesc
value)
136
ComMethodDesc
methodDesc = _comTypeDesc.GetItem;
146
private bool SlowTryGetGetItem(out
ComMethodDesc
value)
150
ComMethodDesc
methodDesc = _comTypeDesc.GetItem;
165
internal bool TryGetSetItem(out
ComMethodDesc
value)
167
ComMethodDesc
methodDesc = _comTypeDesc.SetItem;
177
private bool SlowTryGetSetItem(out
ComMethodDesc
value)
181
ComMethodDesc
methodDesc = _comTypeDesc.SetItem;
196
internal bool TryGetMemberMethod(string name, out
ComMethodDesc
method)
208
internal bool TryGetMemberMethodExplicit(string name, out
ComMethodDesc
method)
216
ComMethodDesc
cmd = new ComMethodDesc(name, dispId, ComTypes.INVOKEKIND.INVOKE_FUNC);
231
internal bool TryGetPropertySetterExplicit(string name, out
ComMethodDesc
method, Type limitType, bool holdsNull)
241
ComMethodDesc
put = new ComMethodDesc(name, dispId, ComTypes.INVOKEKIND.INVOKE_PROPERTYPUT);
244
ComMethodDesc
putref = new ComMethodDesc(name, dispId, ComTypes.INVOKEKIND.INVOKE_PROPERTYPUTREF);
289
if (ComTypeDesc.TryGetFunc(name, out
ComMethodDesc
method) && method.IsDataMember)
544
ComMethodDesc
getItem = null;
545
ComMethodDesc
setItem = null;
564
ComMethodDesc
method = new ComMethodDesc(typeInfo, funcDesc);
634
internal bool TryGetPropertySetter(string name, out
ComMethodDesc
method, Type limitType, bool holdsNull)
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchMetaObject.cs (8)
28
if (_self.TryGetMemberMethod(binder.Name, out
ComMethodDesc
method) ||
43
if (_self.TryGetGetItem(out
ComMethodDesc
method))
52
private DynamicMetaObject BindComInvoke(DynamicMetaObject[] args,
ComMethodDesc
method, CallInfo callInfo, bool[] isByRef)
76
if (_self.TryGetMemberMethod(binder.Name, out
ComMethodDesc
method))
98
private DynamicMetaObject BindGetMember(
ComMethodDesc
method, bool canReturnCallables)
145
if (_self.TryGetGetItem(out
ComMethodDesc
getItem))
158
if (_self.TryGetSetItem(out
ComMethodDesc
setItem))
194
if (_self.TryGetPropertySetter(binder.Name, out
ComMethodDesc
method, value.LimitType, holdsNull) ||