Exemplo n.º 1
0
 public bool Equals(RecurrenceTypeEnum obj)
 {
     if ((object)obj == null)
     {
         return(false);
     }
     return(StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RecurrencePeriod" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Length">Length (required).</param>
 /// <param name="RecurrenceType">RecurrenceType (required).</param>
 public RecurrencePeriod(long?Id = default(long?), long?Length = default(long?), RecurrenceTypeEnum RecurrenceType = default(RecurrenceTypeEnum))
 {
     // to ensure "Length" is required (not null)
     if (Length == null)
     {
         throw new InvalidDataException("Length is a required property for RecurrencePeriod and cannot be null");
     }
     else
     {
         this.Length = Length;
     }
     // to ensure "RecurrenceType" is required (not null)
     if (RecurrenceType == null)
     {
         throw new InvalidDataException("RecurrenceType is a required property for RecurrencePeriod and cannot be null");
     }
     else
     {
         this.RecurrenceType = RecurrenceType;
     }
     this.Id = Id;
 }