PexFactoryMethodAttribute Class

Definition

Tags factory methods used to instantiate objects. The method must be visible, static in a static class.

public ref class PexFactoryMethodAttribute sealed : Microsoft::Pex::Framework::PexAttributeBase
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class PexFactoryMethodAttribute : Microsoft.Pex.Framework.PexAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type PexFactoryMethodAttribute = class
    inherit PexAttributeBase
Public NotInheritable Class PexFactoryMethodAttribute
Inherits PexAttributeBase
Inheritance
PexFactoryMethodAttribute
Attributes

Remarks

This attribute is attached to a method to indicate the actual type of the values returned by the method.

Constructors

PexFactoryMethodAttribute()

Initializes a new instance of the PexFactoryMethodAttribute class.

PexFactoryMethodAttribute(String, String)

Initializes a new instance of the PexFactoryMethodAttribute class.

PexFactoryMethodAttribute(Type, String)

Initializes a new instance of the PexFactoryMethodAttribute class.

PexFactoryMethodAttribute(Type)

Initializes a new instance of the PexFactoryMethodAttribute class.

Methods

TryGetFactoredType(TypeEx)

Gets the factored type.

Applies to