Пример #1
0
 private static XElement CreateObjSurElement(string guid, ObjSurType type)
 {
     new Guid(guid);             // Will throw if 'guid' is not legal.
     return(new XElement("objsur",
                         new XAttribute("t", type == ObjSurType.Owning ? "o" : "r"),
                         new XAttribute("guid", guid)));
 }
Пример #2
0
		private static XElement CreateObjSurElement(string guid, ObjSurType type)
		{
			new Guid(guid); // Will throw if 'guid' is not legal.
			return new XElement("objsur",
				new XAttribute("t", type == ObjSurType.Owning ? "o" : "r"),
				new XAttribute("guid", guid));
		}