UnionCaseInfo Type
Represents a case of a discriminated union type
Instance members
| Instance member | Description | 
| 
                
               | 
                The type in which the case occurs. 
 Example
 type Weather =
  | Rainy
  | Sunny val rainy: obj val typeof<'T> : System.Type module Array
from Microsoft.FSharp.Collections val head: array: 'T array -> 'TEvaluates to a value of type System.Typethat holds type information forWeather. | 
| 
                
               | 
                Returns the custom attributes associated with the case matching the given attribute type. 
 Example
 Multiple items type Signal = inherit Attribute new: signal: string -> Signal member Signal: string -------------------- new: signal: string -> Signal val signal: string Multiple items val string: value: 'T -> string -------------------- type string = System.String namespace System Multiple items type Attribute = member Equals: obj: obj -> bool member GetHashCode: unit -> int member IsDefaultAttribute: unit -> bool member Match: obj: obj -> bool static member GetCustomAttribute: element: Assembly * attributeType: Type -> Attribute + 7 overloads static member GetCustomAttributes: element: Assembly -> Attribute array + 15 overloads static member IsDefined: element: Assembly * attributeType: Type -> bool + 7 overloads member TypeId: obj <summary>Represents the base class for custom attributes.</summary> -------------------- System.Attribute() : System.Attribute val this: Signal type Answer =
  | Yes
  | No val typeof<'T> : System.Type module Array
from Microsoft.FSharp.Collections val map: mapping: ('T -> 'U) -> array: 'T array -> 'U array val x: objEvaluates to  | 
| 
                
               | 
                Returns the custom attributes associated with the case. Example
 type Weather =
  | Rainy
  | Sunny val typeof<'T> : System.Type module Array
from Microsoft.FSharp.Collections val map: mapping: ('T -> 'U) -> array: 'T array -> 'U array val x: objEvaluates to namespace Microsoft namespace Microsoft.FSharp namespace Microsoft.FSharp.Core Multiple items type CompilationMappingAttribute = inherit Attribute new: sourceConstructFlags: SourceConstructFlags -> CompilationMappingAttribute + 3 overloads member ResourceName: string member SequenceNumber: int member SourceConstructFlags: SourceConstructFlags member TypeDefinitions: Type array member VariantNumber: int -------------------- new: sourceConstructFlags: SourceConstructFlags -> CompilationMappingAttribute new: sourceConstructFlags: SourceConstructFlags * sequenceNumber: int -> CompilationMappingAttribute new: resourceName: string * typeDefinitions: System.Type array -> CompilationMappingAttribute new: sourceConstructFlags: SourceConstructFlags * variantNumber: int * sequenceNumber: int -> CompilationMappingAttribute [<Struct>]
type SourceConstructFlags =
  | None = 0
  | SumType = 1
  | RecordType = 2
  | ObjectType = 3
  | Field = 4
  | Exception = 5
  | Closure = 6
  | Module = 7
  | UnionCase = 8
  | Value = 9
  | KindMask = 31
  | NonPublicRepresentation = 32 | 
| 
                
              
                  Full Usage: 
                   this.GetCustomAttributesDataReturns: IList<CustomAttributeData>An list of custom attribute data items. | 
                Returns the custom attributes data associated with the case. 
 Example
 Multiple items type Signal = inherit Attribute new: signal: string -> Signal member Signal: string -------------------- new: signal: string -> Signal val signal: string Multiple items val string: value: 'T -> string -------------------- type string = System.String namespace System Multiple items type Attribute = member Equals: obj: obj -> bool member GetHashCode: unit -> int member IsDefaultAttribute: unit -> bool member Match: obj: obj -> bool static member GetCustomAttribute: element: Assembly * attributeType: Type -> Attribute + 7 overloads static member GetCustomAttributes: element: Assembly -> Attribute array + 15 overloads static member IsDefined: element: Assembly * attributeType: Type -> bool + 7 overloads member TypeId: obj <summary>Represents the base class for custom attributes.</summary> -------------------- System.Attribute() : System.Attribute val this: Signal type Answer =
  | Yes
  | No val answerYes: obj val typeof<'T> : System.Type module Array
from Microsoft.FSharp.Collections val find: predicate: ('T -> bool) -> array: 'T array -> 'T val x: objEvaluates to namespace System Multiple items type String = interface IEnumerable<char> interface IEnumerable interface ICloneable interface IComparable interface IComparable<string> interface IConvertible interface IEquatable<string> interface IParsable<string> interface ISpanParsable<string> new: value: nativeptr<char> -> unit + 8 overloads ... <summary>Represents text as a sequence of UTF-16 code units.</summary> -------------------- System.String(value: nativeptr<char>) : System.String System.String(value: char array) : System.String System.String(value: System.ReadOnlySpan<char>) : System.String System.String(value: nativeptr<sbyte>) : System.String System.String(c: char, count: int) : System.String System.String(value: nativeptr<char>, startIndex: int, length: int) : System.String System.String(value: char array, startIndex: int, length: int) : System.String System.String(value: nativeptr<sbyte>, startIndex: int, length: int) : System.String System.String(value: nativeptr<sbyte>, startIndex: int, length: int, enc: System.Text.Encoding) : System.String Multiple items val seq: sequence: 'T seq -> 'T seq -------------------- type 'T seq = System.Collections.Generic.IEnumerable<'T> namespace Microsoft namespace Microsoft.FSharp namespace Microsoft.FSharp.Core Multiple items type CompilationMappingAttribute = inherit Attribute new: sourceConstructFlags: SourceConstructFlags -> CompilationMappingAttribute + 3 overloads member ResourceName: string member SequenceNumber: int member SourceConstructFlags: SourceConstructFlags member TypeDefinitions: Type array member VariantNumber: int -------------------- new: sourceConstructFlags: SourceConstructFlags -> CompilationMappingAttribute new: sourceConstructFlags: SourceConstructFlags * sequenceNumber: int -> CompilationMappingAttribute new: resourceName: string * typeDefinitions: System.Type array -> CompilationMappingAttribute new: sourceConstructFlags: SourceConstructFlags * variantNumber: int * sequenceNumber: int -> CompilationMappingAttribute [<Struct>]
type SourceConstructFlags =
  | None = 0
  | SumType = 1
  | RecordType = 2
  | ObjectType = 3
  | Field = 4
  | Exception = 5
  | Closure = 6
  | Module = 7
  | UnionCase = 8
  | Value = 9
  | KindMask = 31
  | NonPublicRepresentation = 32 | 
| 
                
               | 
                The fields associated with the case, represented by a PropertyInfo. 
 Example
 type Shape =
  | Rectangle of width: float * length: float
  | Circle of radius: float
  | Prism of width: float * float * height: float Multiple items val float: value: 'T -> float (requires member op_Explicit) -------------------- type float = System.Double -------------------- type float<'Measure> = float val typeof<'T> : System.Type module Array
from Microsoft.FSharp.Collections val map: mapping: ('T -> 'U) -> array: 'T array -> 'U array val unionCase: obj val fieldInfo: objEvaluates to  | 
| 
                The name of the case. 
 Example
 type Weather =
  | Rainy
  | Sunny val typeof<'T> : System.Type module Array
from Microsoft.FSharp.Collections val map: mapping: ('T -> 'U) -> array: 'T array -> 'U array val x: objEvaluates to [|"Rainy", "Sunny"|] | |
| 
                The integer tag for the case. 
 Example
 type CoinToss =
  | Heads
  | Tails val typeof<'T> : System.Type module Array
from Microsoft.FSharp.Collections val map: mapping: ('T -> 'U) -> array: 'T array -> 'U array val x: objEvaluates to [|"Heads has tag 0"; "Tails has tag 1"|] | 
 FSharp.Core
            FSharp.Core