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