Advertisement
ViIvanov

Temporary initialization variable

Aug 29th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. var value = new MyClass {
  2.   P1 = 10,
  3.   let temp = CreateSomeTemp(), // a temporary initialization variable
  4.   P2 = temp.X1,
  5.   P3 = temp.X2,
  6.   P4 = temp.X3 / temo.X4,
  7. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement