@mkarimi ?
Current Documentation
public T GetValue(
Object key,
Func<RhinoDoc, T> newT
)
The <T> is missing in the docs, which is a bit confusing.
The method works fine in code without specifying <T> explicitly because C# infers the type from the lambda argument, but it would be clearer if the documentation showed the <T> and the where T : class constraint. Users that know that the compiler allows to omit <T> can still do it …
Old Docs
public T GetValue<T>(
Object key,
Func<RhinoDoc, T> newT
)
where T : class
thanks - kind regards - tom