CreateDelegate with Excel Com Object  
Author Message
liam3





PostPosted: Visual C# General, CreateDelegate with Excel Com Object Top

Hi,

i try to create a delegate for this reflection call:

public Sheets(object oSheets)
{
this.oSheets = oSheets;
getItemDel = (getItemDelegate) Delegate.CreateDelegate(oSheets.GetType(), oSheets.GetType().GetMethod("get_Item"));
}

the problem is, GetMethod is always null, if i try to get all methods i get only the object methods.



Visual C#10