PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Utilities Namespace / Unknown­Object­Accessor Structure / Unknown­Object­Accessor Methods / Unknown­Object­Accessor.​Get­Factory Method / Unknown­Object­Accessor.​Get­Factory(T) Method

UnknownObjectAccessor.GetFactory<T> Method

Gets a delegate to a factory method that returns a UnknownObjectAccessor for an object of a type given as a generic parameter.

Namespace:  PostSharp.Patterns.Utilities
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static Func<T, UnknownObjectAccessor> GetFactory<T>()

Type Parameters

Type of the objects to be wrapped. It must be the final type (cannot be object, for instance).

Return Value

Type: Func<T, UnknownObjectAccessor>
A delegate that takes the object as input and returns its UnknownObjectAccessor.
See Also