Example #1
0
            private static TableFunctionReturn ReadTableFunctionReturn(XmlTextReader reader)
            {
                ValidateAttributes(reader, _validTableFunctionReturnAttributes);
                var    r         = new TableFunctionReturn();
                string attribute = reader.GetAttribute("Member");

                if (attribute == null)
                {
                    throw Error.RequiredAttributeMissingViolation("Member", reader.LineNumber);
                }

                r.Member = attribute;
                AssertEmptyElement(reader);
                return(r);
            }
            public override TableFunctionReturn VisitTableFunctionReturn(TableFunctionReturn r)
            {
                if (r == null)
                {
                    return(null);
                }

                writer.WriteStartElement("Return");
                if (r.Member != null)
                {
                    writer.WriteAttributeString("Member", r.Member);
                }

                writer.WriteEndElement();
                return(r);
            }
Example #3
0
            public override TableFunctionReturn VisitTableFunctionReturn(TableFunctionReturn r)
            {
                if (r == null)
                    return null;

                writer.WriteStartElement("Return");
                if (r.Member != null)
                    writer.WriteAttributeString("Member", r.Member);

                writer.WriteEndElement();
                return r;
            }
Example #4
0
 public override TableFunctionReturn VisitTableFunctionReturn(TableFunctionReturn r)
 {
     return r;
 }
Example #5
0
 public override TableFunctionReturn VisitTableFunctionReturn(TableFunctionReturn r)
 {
     return(r);
 }
Example #6
0
 public override TableFunctionReturn VisitTableFunctionReturn(TableFunctionReturn r)
 {
     return r == null ? null : new TableFunctionReturn {Member = r.Member};
 }
Example #7
0
 public override TableFunctionReturn VisitTableFunctionReturn(TableFunctionReturn r)
 {
     return(r == null ? null : new TableFunctionReturn {
         Member = r.Member
     });
 }
Example #8
0
            private static TableFunctionReturn ReadTableFunctionReturn(XmlTextReader reader)
            {
                ValidateAttributes(reader, new[] {"Member"});
                var r = new TableFunctionReturn();
                string attribute = reader.GetAttribute("Member");
                if (attribute == null)
                    throw Error.RequiredAttributeMissingViolation("Member", reader.LineNumber);

                r.Member = attribute;
                AssertEmptyElement(reader);
                return r;
            }