protected ChassisMessage() { ChassisMessageAttribute[] attributes = (ChassisMessageAttribute[])this.GetType().GetCustomAttributes(typeof(ChassisMessageAttribute), true); if (attributes.Length != 1) { throw new InvalidOperationException(); } this._chassisMessageAttribute = attributes[0]; }