public RCMenuItemRecord(SerializationInfo info, StreamingContext context) { OptimizedAttributes = null; ssENMenuItem = new ENMenuItemEntityRecord(null); Type objInfo = this.GetType(); FieldInfo fieldInfo = null; fieldInfo = objInfo.GetField("ssENMenuItem", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public); if (fieldInfo == null) { throw new Exception("The field named 'ssENMenuItem' was not found."); } if (fieldInfo.FieldType.IsSerializable) { ssENMenuItem = (ENMenuItemEntityRecord)info.GetValue(fieldInfo.Name, fieldInfo.FieldType); } }
public RCMenuItemRecord(params string[] dummy) { OptimizedAttributes = null; ssENMenuItem = new ENMenuItemEntityRecord(null); }
public WORCMenuItemRecord(ENMenuItemEntityRecord r) { varWSId = (int)r.ssId; varWSOrder = (int)r.ssOrder; varWSCaption = BaseAppUtils.RemoveControlChars(r.ssCaption); }