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 Method (Type)

UnknownObjectAccessor.GetFactory Method (Type)

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<Object, UnknownObjectAccessor> GetFactory(
	Type type


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

Return Value

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