Example #1
0
         /// <summary>
 /// Compara dos indices y devuelve true si son iguales, caso contrario, devuelve false.
 /// </summary>
 public static Boolean Compare(TableOption origen, TableOption destino)
 {
     if (destino == null) throw new ArgumentNullException("destino");
     if (origen == null) throw new ArgumentNullException("origen");
     if (!destino.Value.Equals(origen.Value)) return false;
     return true;
 }
Example #2
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;
 }
Example #3
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);
        }
Example #4
0
 /// <summary>
 /// Compara dos indices y devuelve true si son iguales, caso contrario, devuelve false.
 /// </summary>
 public static Boolean Compare(TableOption origen, TableOption destino)
 {
     if (destino == null)
     {
         throw new ArgumentNullException("destino");
     }
     if (origen == null)
     {
         throw new ArgumentNullException("origen");
     }
     if (!destino.Value.Equals(origen.Value))
     {
         return(false);
     }
     return(true);
 }