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