Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public struct SomeStruct
  2. {
  3. public SomeStruct(String stringProperty, Int32 intProperty)
  4. {
  5. this.StringProperty = stringProperty;
  6. this.IntProperty = intProperty;
  7. }
  8.  
  9. public String StringProperty { get; set; }
  10. public Int32 IntProperty { get; set; }
  11. }
  12.  
  13. public SomeStruct(String stringProperty, Int32 intProperty) : this()
  14. {
  15. this.StringProperty = stringProperty;
  16. this.IntProperty = intProperty;
  17. }
  18.  
  19. myFoo.f2 = someValue;
  20.  
  21. myFoo = new Foo(myFoo.f1, someValue);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement