Пример #1
0
        protected override Procedure DeserializeProcedure(XmlElement xmlElement)
        {
            Procedure info = Procedure.Deserialize(xmlElement);

            if (string.IsNullOrEmpty(info.Name))
            {
                throw new Exception("No procedure name specified in mutation for " + mBlock.ToDevString());
            }
            return(info);
        }
Пример #2
0
        protected override Procedure DeserializeProcedure(XmlElement xmlElement)
        {
            Procedure  info      = Procedure.Deserialize(xmlElement);
            FieldLabel nameField = GetNameField();

            if (string.IsNullOrEmpty(info.Name) && nameField != null)
            {
                info = new Procedure(nameField.GetText(), info.Arguments, info.DefinitionHasStatementBody);
            }
            return(info);
        }