Exemple #1
0
        private bool CallMethodWithOutParam(IRefAndOutParams refAndOutParams)
        {
            var test = 45;

            return(refAndOutParams.SomeMethodWithOutArg(out test));
        }
 private bool CallMethodWithOutParam(IRefAndOutParams refAndOutParams)
 {
     var test = 45;
     return refAndOutParams.SomeMethodWithOutArg(out test);
 }
Exemple #3
0
        private bool CallMethodWithRefParam(IRefAndOutParams refAndOutParams)
        {
            var test = "hello";

            return(refAndOutParams.SomeMethodWithRefArg(ref test));
        }
 private bool CallMethodWithRefParam(IRefAndOutParams refAndOutParams)
 {
     var test = "hello";
     return refAndOutParams.SomeMethodWithRefArg(ref test);
 }