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)
C#
public static Func<Object, UnknownObjectAccessor> GetFactory( Type type )
Parameters
- 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.