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