protected string GetStageOperationID() { object[] attrs = GetType().GetCustomAttributes(typeof(StageOperationIDAttribute), true); if (attrs.Length == 0) { return null; } return ((StageOperationIDAttribute)attrs[0]).ID; }