Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ContractClassForAttribute.cs
Go to the documentation of this file.
1
namespace
System.Diagnostics.Contracts
;
2
3
[
Conditional
(
"CONTRACTS_FULL"
)]
4
[AttributeUsage(
AttributeTargets
.Class, AllowMultiple =
false
, Inherited =
false
)]
5
public
sealed
class
ContractClassForAttribute
:
Attribute
6
{
7
private
readonly
Type
_typeIAmAContractFor
;
8
9
public
Type
TypeContractsAreFor
=>
_typeIAmAContractFor
;
10
11
public
ContractClassForAttribute
(
Type
typeContractsAreFor)
12
{
13
_typeIAmAContractFor
= typeContractsAreFor;
14
}
15
}
System.Attribute
Definition
Attribute.cs:12
System.Diagnostics.Contracts.ContractClassForAttribute.TypeContractsAreFor
Type TypeContractsAreFor
Definition
ContractClassForAttribute.cs:9
System.Diagnostics.Contracts.ContractClassForAttribute._typeIAmAContractFor
readonly Type _typeIAmAContractFor
Definition
ContractClassForAttribute.cs:7
System.Diagnostics.Contracts.ContractClassForAttribute.ContractClassForAttribute
ContractClassForAttribute(Type typeContractsAreFor)
Definition
ContractClassForAttribute.cs:11
System.Diagnostics.Contracts.ContractClassForAttribute
Definition
ContractClassForAttribute.cs:6
System.Type
Definition
Type.cs:14
System.Diagnostics.Contracts
Definition
Contract.cs:6
System.Linq.Expressions.ExpressionType.Conditional
@ Conditional
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
source
System.Private.CoreLib
System.Diagnostics.Contracts
ContractClassForAttribute.cs
Generated by
1.10.0