GetContractOptions(IMetaTarget)
Gets the ContractOptions in the context of the current template.
Declaration
[Obsolete("Use ContractContext.Options")]
public static ContractOptions GetContractOptions(this IMetaTarget target)Parameters
| Type | Name | Description |
|---|---|---|
| IMetaTarget | target | The value of |
Returns
| Type | Description |
|---|---|
| ContractOptions |
See Also
GetContractOptions(IMethod)
Gets the ContractOptions for a given method.
Declaration
public static ContractOptions GetContractOptions(this IMethod declaration)Parameters
| Type | Name | Description |
|---|---|---|
| IMethod | declaration |
Returns
| Type | Description |
|---|---|
| ContractOptions |
See Also
GetContractOptions(INamedType)
Gets the ContractOptions for a given type.
Declaration
public static ContractOptions GetContractOptions(this INamedType declaration)Parameters
| Type | Name | Description |
|---|---|---|
| INamedType | declaration |
Returns
| Type | Description |
|---|---|
| ContractOptions |
See Also
GetContractOptions(IFieldOrPropertyOrIndexer)
Gets the ContractOptions for a given field, property, or indexer.
Declaration
public static ContractOptions GetContractOptions(this IFieldOrPropertyOrIndexer declaration)Parameters
| Type | Name | Description |
|---|---|---|
| IFieldOrPropertyOrIndexer | declaration |
Returns
| Type | Description |
|---|---|
| ContractOptions |
See Also
GetContractOptions(IParameter)
Gets the ContractOptions for a given parameter.
Declaration
public static ContractOptions GetContractOptions(this IParameter declaration)Parameters
| Type | Name | Description |
|---|---|---|
| IParameter | declaration |
Returns
| Type | Description |
|---|---|
| ContractOptions |
See Also
GetContractOptions(IDeclaration)
Gets the ContractOptions for a given declaration.
Declaration
public static ContractOptions GetContractOptions(this IDeclaration declaration)Parameters
| Type | Name | Description |
|---|---|---|
| IDeclaration | declaration |
Returns
| Type | Description |
|---|---|
| ContractOptions |