示例#1
0
        public static string Instance_Int32ToString(int value)
        {
            var inst = new DelegateTypes();
            var dlg  = new Int32ToStringDelegate(inst.Instance_Int32ToStringImpl);

            return(dlg(value));
        }
示例#2
0
        public static int Instance_Void_RefInt(int value)
        {
            var inst = new DelegateTypes();
            var dlg  = new RefIntDelegate(inst.Instance_Void_RefIntImpl);
            var v    = value;

            dlg(ref v);
            return(v);
        }