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