PexFactoryMethodAttribute Class

Definition

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

C++
public ref class PexFactoryMethodAttribute sealed : Microsoft::Pex::Framework::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

Produit Versions
Visual Studio SDK 2017, 2019