PexFactoryMethodAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |