NickStrupat / NameOf

Provides strongly typed access to a compile-time string representing the name of a variable, field, property, method, event, enum, or type.
MIT License
20 stars 7 forks source link

Get method name from interface #8

Open fraschfn opened 8 years ago

fraschfn commented 8 years ago

I'd like to get the following working:

Name.OfVoid<IModel>(x => x.Method);

What's working is

Name.OfVoid<SomeConcreteModel>(x => x.Method);

I'd prefer to use the interface