public override bool Equals( object obj ) { if ( !( obj is LightInfo ) ) return false; LightInfo rhs = (LightInfo)obj; return this.light == rhs.light && this.type == rhs.type && this.range == rhs.range && this.position == rhs.position; }