Documentation omits <T> in generic method

@mkarimi ?

Current Documentation

here

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

here

public T GetValue<T>(
	Object key,
	Func<RhinoDoc, T> newT
)
where T : class

thanks - kind regards - tom

Hi Tom,

I have to dig to find out where the old site got the extra line from. I logged it here: WWW-3095 Documentation omits in generic method

2 Likes