I got a Function that is basically this Method:
/// <summary>Extracts the parent id.</summary>
/// <param name="nameEntities">The name entities.</param>
/// <param name="tcdMakeId">The TCD make id.</param>
/// <returns>Parent Id.</returns>
public Nullable<int> ExtractParentId( IEnumerable<NameEntity> nameEntities, int childId )
{
/* Do some Extraction here */
}
In the Method it is no problem at all to add nice XML documentation for parameter and so forth. But is there a Way to do this with a Function? The Intellisense of my colleague gives him nothing but Arg1, Arg2.
The Function would be:
private Func<IEnumerable<NameEntity>, int, Nullable<int>> ExtractParentId
{
get
{
return this._extractParentId = this._extractParentId ??
new Func<IEnumerable<NameEntity>, int, Nullable<int>>( ( nameEntities, childId ) =>
{
/* Do some Extraction here */
} );
}
}
Well I know this is not a perfect example, but I can't post the real code here ( corporate :/ and way to long ) but this is basicly a striped down version.
Thanks quite a lot, Marc
Func<R,S,T>, can I give it XML documentation so intellisense shows the same details for the property as it would a regular method?"