Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void doSomeThing(Thing toDoItTo,
- out OtherThing result1,
- out AnotherThing result2)
- {
- ...
- }
- OtherThing y;
- AnotherThing z;
- doSomeThing(x, out y, out z);
- y.method1();
- z.method2();
- struct DoSomeThingResults
- {
- public OtherThing Result1;
- public OtherThing Result2;
- }
- DoSomeThingResults doSomeThing(Thing toDoItTo)
- {
- ...
- }
- DoSomethingResults results = doSomeThing(x);
- results.Result1.method1();
- results.Result2.method2();
- let success, value = Int32.TryParse("1234")
- (* success is true *)
- (* value is 1234 *)
Add Comment
Please, Sign In to add comment