网上演练
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.

26 lines
1003 B

#if NET20 || NET30 || NET35 || NET40 || !NET_4_6
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Allows you to obtain the line number in the source file at which the method is called.
/// </summary>
/// <remarks>
/// You apply the <b>CallerFilePath</b> attribute to an optional parameter that has a default value.
/// You must specify an explicit default value for the optional parameter.
/// You can't apply this attribute to parameters that aren't specified as optional.
/// </remarks>
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
public sealed class CallerLineNumberAttribute : Attribute
{
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public CallerLineNumberAttribute()
{
// Empty
// This constructor is not redundant
// You cannot put attributes on the default constructor
}
}
}
#endif