Exemplo n.º 1
0
 /// <summary>Reset a value if the specified discriminator is assigned</summary>
 public static void Reset(ref DiscriminatedUnion128Object value, int discriminator)
 {
     if (value.Is(discriminator))
     {
         value = default(DiscriminatedUnion128Object);
     }
 }
Exemplo n.º 2
0
 /// <summary>Reset a value if the specified discriminator is assigned</summary>
 public static void Reset(ref DiscriminatedUnion128Object value, int discriminator)
 {
     if (value.Discriminator == discriminator)
     {
         value = default;
     }
 }