You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
917 B
25 lines
917 B
5 years ago
|
#if NET20 || NET30 || NET35 || !NET_4_6
|
||
|
|
||
|
// Licensed to the .NET Foundation under one or more agreements.
|
||
|
// The .NET Foundation licenses this file to you under the MIT license.
|
||
|
// See the LICENSE file in the project root for more information.
|
||
|
|
||
|
namespace System.Diagnostics.Contracts
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// This attribute is used to mark a method as being the invariant
|
||
|
/// method for a class. The method can have any name, but it must
|
||
|
/// return "void" and take no parameters. The body of the method
|
||
|
/// must consist solely of one or more calls to the method
|
||
|
/// Contract.Invariant. A suggested name for the method is
|
||
|
/// "ObjectInvariant".
|
||
|
/// </summary>
|
||
|
[Conditional("CONTRACTS_FULL")]
|
||
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||
|
public sealed class ContractInvariantMethodAttribute : Attribute
|
||
|
{
|
||
|
// Empty
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|