Sajgoniarz

Untitled

Feb 11th, 2022 (edited)
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. public class A {
  2.     public B BProperty { get; set; }
  3.     public C CProperty { get; set; }
  4.    
  5.     public class B {
  6.         public int? Quantity { get; set;}
  7.     }
  8.  
  9.     public class C {
  10.         public int? QuantityInAnotherContext => BProperty?.Quantity;
  11.     }
  12. }
Add Comment
Please, Sign In to add comment