This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//第二版 | |
public class Target | |
{ | |
public delegate int MyDelegate(); | |
private MyDelegate _myDelegate; | |
public MyDelegate GetsMod | |
{ | |
get | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Target | |
{ | |
private delegate int MyDelegate(); | |
public int MyMethod(int original) | |
{ | |
MyDelegate mydelegate = new DelegateSource().DelegateOne; | |
var mod = mydelegate(); | |
return original % mod; | |
} | |
} |
NewerOlder