public override Boolean Equals(object obj) { if ((obj == null) || (obj.GetType() != this.GetType())) { return(false); } CONStructure castObj = (CONStructure)obj; return((castObj != null) && (this.Id == castObj.Id)); }
public CONStructure(CONStructure data, Options option) : base(data, option) { if (option == Options.Light || option == Options.Me || option == Options.All) { //OptionName.Light if (option == Options.Me || option == Options.All) { this.Integrator = (data.Integrator != null) ? new CONIntegrator(data.Integrator, Options.Light) : null; } } }