예제 #1
0
        /// <summary>
        /// Clona el objeto en una nueva instancia.
        /// </summary>
        public override ISchemaBase Clone(ISchemaBase parent)
        {
            TableOption option = new TableOption(parent);

            option.Name   = this.Name;
            option.Status = this.Status;
            option.Value  = this.Value;
            return(option);
        }
예제 #2
0
 /// <summary>
 /// Compara dos indices y devuelve true si son iguales, caso contrario, devuelve false.
 /// </summary>
 public static Boolean Compare(TableOption origin, TableOption destination)
 {
     if (destination == null)
     {
         throw new ArgumentNullException("destination");
     }
     if (origin == null)
     {
         throw new ArgumentNullException("origin");
     }
     if (!destination.Value.Equals(origin.Value))
     {
         return(false);
     }
     return(true);
 }