Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/263.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何使用SemanticalyAdvisedMethodKinds代替ApplyStateMachine?_C#_Postsharp - Fatal编程技术网

C# 如何使用SemanticalyAdvisedMethodKinds代替ApplyStateMachine?

C# 如何使用SemanticalyAdvisedMethodKinds代替ApplyStateMachine?,c#,postsharp,C#,Postsharp,我在代码中使用了ApplyToStateMachine,在我的类的构造函数中设置为false。 现在有了最新版本的PostSharp,我发现这已经过时了,我需要使用SemanticalyAdvisedMethodKinds。 如何用ApplyToStateMachine替换SemanticalyAdvisedMethodKinds,使其具有与之前ApplyToStateMachine设置为false时相同的行为?要实现与ApplyToStateMachine属性设置为false时相同的行为,将S

我在代码中使用了ApplyToStateMachine,在我的类的构造函数中设置为false。 现在有了最新版本的PostSharp,我发现这已经过时了,我需要使用SemanticalyAdvisedMethodKinds。
如何用ApplyToStateMachine替换SemanticalyAdvisedMethodKinds,使其具有与之前ApplyToStateMachine设置为false时相同的行为?

要实现与
ApplyToStateMachine
属性设置为
false
时相同的行为,将
SemanticallyAdvisedMethodKinds
属性设置为
SemanticallyAdvisedMethodKinds.None


有关此主题的更多信息,请参阅。

谢谢安东宁!