/// <summary> /// Initialize class /// </summary> internal NodeManagerMessage() { NodeManagerMessageAttribute[] attributes = (NodeManagerMessageAttribute[])this.GetType().GetCustomAttributes(typeof(NodeManagerMessageAttribute), true); if (attributes.Length != 1) { throw new InvalidOperationException(); } this.nodeManagerMessageAttribute = attributes[0]; }