参见英文答案 >
What does [param: NotNull] mean in C#?2个
看着System.Windows.Threading.Dispatcher(由Reflector反编译)我遇到了;
看着System.Windows.Threading.Dispatcher(由Reflector反编译)我遇到了;
[field: SecurityCritical] public event DispatcherUnhandledExceptionFilterEventHandler UnhandledExceptionFilter;
我不承认属性声明的’field’部分,它是什么?@H_502_6@
编辑:@H_502_6@
public event DispatcherUnhandledExceptionFilterEventHandler UnhandledExceptionFilter { [SecurityCritical] [UIPermissionAttribute(SecurityAction.LinkDemand,Unrestricted=true)] add { _unhandledExceptionFilter += value; } [SecurityCritical] [UIPermissionAttribute(SecurityAction.LinkDemand,Unrestricted=true)] remove { _unhandledExceptionFilter -= value; } }
解决方法
field:被称为属性目标.它允许您指定属性的目标(汇编,返回等).
有关详细信息,请参见http://msdn.microsoft.com/en-us/library/b3787ac0.aspx.@H_502_6@