void IBinaryXmlElement.Write(BinaryXmlWriter writer) { writer.WriteValue ("File", File); writer.WriteValue ("LastScan", LastScan); writer.WriteValue ("AddinId", AddinId); writer.WriteValue ("IsRoot", IsRoot); writer.WriteValue ("ScanError", ScanError); writer.WriteValue ("Domain", Domain); if (IgnorePaths != null && IgnorePaths.Count > 0) writer.WriteValue ("IgnorePaths", IgnorePaths); }
internal override void Write (BinaryXmlWriter writer) { writer.WriteValue ("path", path); writer.WriteValue ("Nodes", ExtensionNodes); }
internal override void Write(BinaryXmlWriter writer) { if (Element != null) SaveXmlAttributes (); writer.WriteValue ("nodeName", nodeName); writer.WriteValue ("attributes", attributes); writer.WriteValue ("ChildNodes", ChildNodes); }
void IBinaryXmlElement.Write (BinaryXmlWriter writer) { writer.WriteValue ("File", File); writer.WriteValue ("LastScan", LastScan); writer.WriteValue ("AddinId", AddinId); writer.WriteValue ("IsRoot", IsRoot); writer.WriteValue ("ScanError", ScanError); }
public void Write (BinaryXmlWriter writer) { writer.WriteValue ("fileName", fileName); writer.WriteValue ("timestamp", timestamp); }
internal virtual void Write (BinaryXmlWriter writer) { }
public string WriteSharedObject (string directory, string sharedFileName, string extension, string objectId, string readFileName, BinaryXmlTypeMap typeMap, IBinaryXmlElement obj) { string file = readFileName; if (file == null) { int count = 1; string name = sharedFileName + "_" + Util.GetStringHashCode (objectId).ToString ("x"); file = Path.Combine (directory, name + extension); while (Exists (file)) { count++; file = Path.Combine (directory, name + "_" + count + extension); } } using (Stream s = Create (file)) { BinaryXmlWriter writer = new BinaryXmlWriter (s, typeMap); writer.WriteBeginElement ("File"); writer.WriteValue ("id", objectId); writer.WriteValue ("data", obj); writer.WriteEndElement (); } return file; }
internal override void Write (BinaryXmlWriter writer) { writer.WriteValue ("Id", id); writer.WriteValue ("NodeTypes", NodeTypes); writer.WriteValue ("NodeSets", NodeSets.InternalList); }
void IBinaryXmlElement.Write (BinaryXmlWriter writer) { writer.WriteValue ("name", Name); writer.WriteValue ("locale", Locale); writer.WriteValue ("value", Value); }
void IBinaryXmlElement.Write (BinaryXmlWriter writer) { writer.WriteValue ("index", index); }
internal override void Write (BinaryXmlWriter writer) { base.Write (writer); writer.WriteValue ("fullName", fullName); writer.WriteValue ("package", package); }
internal override void Write (BinaryXmlWriter writer) { writer.WriteValue ("Id", Id); writer.WriteValue ("TypeName", TypeName); writer.WriteValue ("Description", Description); writer.WriteValue ("AddinId", AddinId); }
internal override void Write (BinaryXmlWriter writer) { base.Write (writer); if (Id.Length == 0) Id = "Type"; if (TypeName.Length == 0) typeName = "Mono.Addins.TypeExtensionNode"; writer.WriteValue ("typeName", typeName); writer.WriteValue ("objectTypeName", objectTypeName); writer.WriteValue ("description", description); writer.WriteValue ("addinId", addinId); writer.WriteValue ("Attributes", attributes); writer.WriteValue ("customAttributeType", customAttributeTypeName); }
void IBinaryXmlElement.Write (BinaryXmlWriter writer) { if (files.Count == 0) { domain = null; sharedFolder = true; } writer.WriteValue ("folder", folder); writer.WriteValue ("files", files); writer.WriteValue ("domain", domain); writer.WriteValue ("sharedFolder", sharedFolder); }
internal override void Write(BinaryXmlWriter writer) { base.Write (writer); writer.WriteValue ("id", id); writer.WriteValue ("version", version); }
internal override void Write(BinaryXmlWriter writer) { writer.WriteValue ("path", path); writer.WriteValue ("name", name); writer.WriteValue ("description", Description); writer.WriteValue ("rootAddin", rootAddin); writer.WriteValue ("addins", Addins); writer.WriteValue ("NodeSet", NodeSet); writer.WriteValue ("Conditions", Conditions); writer.WriteValue ("defaultInsertBefore", defaultInsertBefore); writer.WriteValue ("defaultInsertAfter", defaultInsertAfter); }
void IBinaryXmlElement.Write (BinaryXmlWriter writer) { Write (writer); }
internal override void Write(BinaryXmlWriter writer) { writer.WriteValue ("name", name); writer.WriteValue ("type", type); writer.WriteValue ("required", required); writer.WriteValue ("description", description); writer.WriteValue ("localizable", localizable); }
internal override void Write(BinaryXmlWriter writer) { writer.WriteValue ("Assemblies", Assemblies); writer.WriteValue ("DataFiles", DataFiles); writer.WriteValue ("Dependencies", Dependencies); writer.WriteValue ("Extensions", Extensions); writer.WriteValue ("IgnorePaths", ignorePaths); }
void IBinaryXmlElement.Write(BinaryXmlWriter writer) { TransferCoreProperties (true); writer.WriteValue ("id", ParseString (id)); writer.WriteValue ("ns", ParseString (ns)); writer.WriteValue ("isroot", isroot); writer.WriteValue ("name", ParseString (name)); writer.WriteValue ("version", ParseString (version)); writer.WriteValue ("compatVersion", ParseString (compatVersion)); writer.WriteValue ("hasUserId", hasUserId); writer.WriteValue ("author", ParseString (author)); writer.WriteValue ("url", ParseString (url)); writer.WriteValue ("copyright", ParseString (copyright)); writer.WriteValue ("description", ParseString (description)); writer.WriteValue ("category", ParseString (category)); writer.WriteValue ("basePath", basePath); writer.WriteValue ("sourceAddinFile", sourceAddinFile); writer.WriteValue ("defaultEnabled", defaultEnabled); writer.WriteValue ("domain", domain); writer.WriteValue ("MainModule", MainModule); writer.WriteValue ("OptionalModules", OptionalModules); writer.WriteValue ("NodeSets", ExtensionNodeSets); writer.WriteValue ("ExtensionPoints", ExtensionPoints); writer.WriteValue ("ConditionTypes", ConditionTypes); writer.WriteValue ("FilesInfo", fileInfo); writer.WriteValue ("Localizer", localizer); writer.WriteValue ("flags", (int)flags); writer.WriteValue ("Properties", properties); }
public void WriteObject (string file, object obj, BinaryXmlTypeMap typeMap) { using (Stream s = Create (file)) { BinaryXmlWriter writer = new BinaryXmlWriter (s, typeMap); writer.WriteValue ("data", obj); } }
void IBinaryXmlElement.Write (BinaryXmlWriter writer) { writer.WriteValue ("folder", folder); writer.WriteValue ("files", files); }
void IBinaryXmlElement.Write (BinaryXmlWriter writer) { writer.WriteValue ("id", id); writer.WriteValue ("ns", ns); writer.WriteValue ("isroot", isroot); writer.WriteValue ("name", name); writer.WriteValue ("version", version); writer.WriteValue ("compatVersion", compatVersion); writer.WriteValue ("hasUserId", hasUserId); writer.WriteValue ("author", author); writer.WriteValue ("url", url); writer.WriteValue ("copyright", copyright); writer.WriteValue ("description", description); writer.WriteValue ("category", category); writer.WriteValue ("basePath", basePath); writer.WriteValue ("sourceAddinFile", sourceAddinFile); writer.WriteValue ("MainModule", MainModule); writer.WriteValue ("OptionalModules", OptionalModules); writer.WriteValue ("NodeSets", ExtensionNodeSets); writer.WriteValue ("ExtensionPoints", ExtensionPoints); writer.WriteValue ("ConditionTypes", ConditionTypes); }
internal override void Write (BinaryXmlWriter writer) { base.Write (writer); writer.WriteValue ("id", ParseString (id)); writer.WriteValue ("version", ParseString (version)); }