#pragma warning disable 1591, 0114, 0108
// ------------------------------------------------------------------------------
//
// Generated by Xsd2Code. Version 3.3.0.33001
// OSGeo.MapGuide.ObjectModels.CommonBindingListCSharpTrueFalseTrueTrueTrueFalseTrueFalseNet20SerializeDeserializeSaveToFileLoadFromFileTrueFalseFalseFalseFalse
//
// ------------------------------------------------------------------------------
namespace OSGeo.MapGuide.ObjectModels.Common
{
using System.ComponentModel;
using System.IO;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class FdoSpatialContextList : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string providerNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private BindingList spatialContextField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string ProviderName {
get {
return this.providerNameField;
}
set {
if ((this.providerNameField != null)) {
if ((providerNameField.Equals(value) != true)) {
this.providerNameField = value;
this.OnPropertyChanged("ProviderName");
}
}
else {
this.providerNameField = value;
this.OnPropertyChanged("ProviderName");
}
}
}
[System.Xml.Serialization.XmlElementAttribute("SpatialContext")]
public BindingList SpatialContext {
get {
return this.spatialContextField;
}
set {
if ((this.spatialContextField != null)) {
if ((spatialContextField.Equals(value) != true)) {
this.spatialContextField = value;
this.OnPropertyChanged("SpatialContext");
}
}
else {
this.spatialContextField = value;
this.OnPropertyChanged("SpatialContext");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(FdoSpatialContextList));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current FdoSpatialContextList object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an FdoSpatialContextList object
///
/// string workflow markup to deserialize
/// Output FdoSpatialContextList object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out FdoSpatialContextList obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextList);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out FdoSpatialContextList obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static FdoSpatialContextList Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((FdoSpatialContextList)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current FdoSpatialContextList object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an FdoSpatialContextList object
///
/// string xml file to load and deserialize
/// Output FdoSpatialContextList object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out FdoSpatialContextList obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextList);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out FdoSpatialContextList obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static FdoSpatialContextList LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this FdoSpatialContextList object
///
public virtual FdoSpatialContextList Clone() {
return ((FdoSpatialContextList)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class FdoSpatialContextListSpatialContext : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string nameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string descriptionField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string coordinateSystemNameField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string coordinateSystemWktField;
[EditorBrowsable(EditorBrowsableState.Never)]
private FdoSpatialContextListSpatialContextExtentType extentTypeField;
[EditorBrowsable(EditorBrowsableState.Never)]
private FdoSpatialContextListSpatialContextExtent extentField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double xYToleranceField;
[EditorBrowsable(EditorBrowsableState.Never)]
private double zToleranceField;
[EditorBrowsable(EditorBrowsableState.Never)]
private bool isActiveField;
private static System.Xml.Serialization.XmlSerializer serializer;
public FdoSpatialContextListSpatialContext() {
this.isActiveField = false;
}
public string Name {
get {
return this.nameField;
}
set {
if ((this.nameField != null)) {
if ((nameField.Equals(value) != true)) {
this.nameField = value;
this.OnPropertyChanged("Name");
}
}
else {
this.nameField = value;
this.OnPropertyChanged("Name");
}
}
}
public string Description {
get {
return this.descriptionField;
}
set {
if ((this.descriptionField != null)) {
if ((descriptionField.Equals(value) != true)) {
this.descriptionField = value;
this.OnPropertyChanged("Description");
}
}
else {
this.descriptionField = value;
this.OnPropertyChanged("Description");
}
}
}
public string CoordinateSystemName {
get {
return this.coordinateSystemNameField;
}
set {
if ((this.coordinateSystemNameField != null)) {
if ((coordinateSystemNameField.Equals(value) != true)) {
this.coordinateSystemNameField = value;
this.OnPropertyChanged("CoordinateSystemName");
}
}
else {
this.coordinateSystemNameField = value;
this.OnPropertyChanged("CoordinateSystemName");
}
}
}
public string CoordinateSystemWkt {
get {
return this.coordinateSystemWktField;
}
set {
if ((this.coordinateSystemWktField != null)) {
if ((coordinateSystemWktField.Equals(value) != true)) {
this.coordinateSystemWktField = value;
this.OnPropertyChanged("CoordinateSystemWkt");
}
}
else {
this.coordinateSystemWktField = value;
this.OnPropertyChanged("CoordinateSystemWkt");
}
}
}
public FdoSpatialContextListSpatialContextExtentType ExtentType {
get {
return this.extentTypeField;
}
set {
if ((extentTypeField.Equals(value) != true)) {
this.extentTypeField = value;
this.OnPropertyChanged("ExtentType");
}
}
}
///
/// This would return AWKT representing extents e.g. polygon, polyline or circle etc.
///
public FdoSpatialContextListSpatialContextExtent Extent {
get {
return this.extentField;
}
set {
if ((this.extentField != null)) {
if ((extentField.Equals(value) != true)) {
this.extentField = value;
this.OnPropertyChanged("Extent");
}
}
else {
this.extentField = value;
this.OnPropertyChanged("Extent");
}
}
}
public double XYTolerance {
get {
return this.xYToleranceField;
}
set {
if ((xYToleranceField.Equals(value) != true)) {
this.xYToleranceField = value;
this.OnPropertyChanged("XYTolerance");
}
}
}
public double ZTolerance {
get {
return this.zToleranceField;
}
set {
if ((zToleranceField.Equals(value) != true)) {
this.zToleranceField = value;
this.OnPropertyChanged("ZTolerance");
}
}
}
[System.Xml.Serialization.XmlAttributeAttribute()]
[System.ComponentModel.DefaultValueAttribute(false)]
public bool IsActive {
get {
return this.isActiveField;
}
set {
if ((isActiveField.Equals(value) != true)) {
this.isActiveField = value;
this.OnPropertyChanged("IsActive");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(FdoSpatialContextListSpatialContext));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current FdoSpatialContextListSpatialContext object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an FdoSpatialContextListSpatialContext object
///
/// string workflow markup to deserialize
/// Output FdoSpatialContextListSpatialContext object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out FdoSpatialContextListSpatialContext obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextListSpatialContext);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out FdoSpatialContextListSpatialContext obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static FdoSpatialContextListSpatialContext Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((FdoSpatialContextListSpatialContext)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current FdoSpatialContextListSpatialContext object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an FdoSpatialContextListSpatialContext object
///
/// string xml file to load and deserialize
/// Output FdoSpatialContextListSpatialContext object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out FdoSpatialContextListSpatialContext obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextListSpatialContext);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out FdoSpatialContextListSpatialContext obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static FdoSpatialContextListSpatialContext LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this FdoSpatialContextListSpatialContext object
///
public virtual FdoSpatialContextListSpatialContext Clone() {
return ((FdoSpatialContextListSpatialContext)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public enum FdoSpatialContextListSpatialContextExtentType {
///
Static,
///
Dynamic,
}
///
/// This would return AWKT representing extents e.g. polygon, polyline or circle etc.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class FdoSpatialContextListSpatialContextExtent : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate lowerLeftCoordinateField;
[EditorBrowsable(EditorBrowsableState.Never)]
private FdoSpatialContextListSpatialContextExtentUpperRightCoordinate upperRightCoordinateField;
private static System.Xml.Serialization.XmlSerializer serializer;
public FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate LowerLeftCoordinate {
get {
return this.lowerLeftCoordinateField;
}
set {
if ((this.lowerLeftCoordinateField != null)) {
if ((lowerLeftCoordinateField.Equals(value) != true)) {
this.lowerLeftCoordinateField = value;
this.OnPropertyChanged("LowerLeftCoordinate");
}
}
else {
this.lowerLeftCoordinateField = value;
this.OnPropertyChanged("LowerLeftCoordinate");
}
}
}
public FdoSpatialContextListSpatialContextExtentUpperRightCoordinate UpperRightCoordinate {
get {
return this.upperRightCoordinateField;
}
set {
if ((this.upperRightCoordinateField != null)) {
if ((upperRightCoordinateField.Equals(value) != true)) {
this.upperRightCoordinateField = value;
this.OnPropertyChanged("UpperRightCoordinate");
}
}
else {
this.upperRightCoordinateField = value;
this.OnPropertyChanged("UpperRightCoordinate");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(FdoSpatialContextListSpatialContextExtent));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current FdoSpatialContextListSpatialContextExtent object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an FdoSpatialContextListSpatialContextExtent object
///
/// string workflow markup to deserialize
/// Output FdoSpatialContextListSpatialContextExtent object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out FdoSpatialContextListSpatialContextExtent obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextListSpatialContextExtent);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out FdoSpatialContextListSpatialContextExtent obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static FdoSpatialContextListSpatialContextExtent Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((FdoSpatialContextListSpatialContextExtent)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current FdoSpatialContextListSpatialContextExtent object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an FdoSpatialContextListSpatialContextExtent object
///
/// string xml file to load and deserialize
/// Output FdoSpatialContextListSpatialContextExtent object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out FdoSpatialContextListSpatialContextExtent obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextListSpatialContextExtent);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out FdoSpatialContextListSpatialContextExtent obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static FdoSpatialContextListSpatialContextExtent LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this FdoSpatialContextListSpatialContextExtent object
///
public virtual FdoSpatialContextListSpatialContextExtent Clone() {
return ((FdoSpatialContextListSpatialContextExtent)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string xField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string yField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string zField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string mField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string X {
get {
return this.xField;
}
set {
if ((this.xField != null)) {
if ((xField.Equals(value) != true)) {
this.xField = value;
this.OnPropertyChanged("X");
}
}
else {
this.xField = value;
this.OnPropertyChanged("X");
}
}
}
public string Y {
get {
return this.yField;
}
set {
if ((this.yField != null)) {
if ((yField.Equals(value) != true)) {
this.yField = value;
this.OnPropertyChanged("Y");
}
}
else {
this.yField = value;
this.OnPropertyChanged("Y");
}
}
}
public string Z {
get {
return this.zField;
}
set {
if ((this.zField != null)) {
if ((zField.Equals(value) != true)) {
this.zField = value;
this.OnPropertyChanged("Z");
}
}
else {
this.zField = value;
this.OnPropertyChanged("Z");
}
}
}
public string M {
get {
return this.mField;
}
set {
if ((this.mField != null)) {
if ((mField.Equals(value) != true)) {
this.mField = value;
this.OnPropertyChanged("M");
}
}
else {
this.mField = value;
this.OnPropertyChanged("M");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate object
///
/// string workflow markup to deserialize
/// Output FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate object
///
/// string xml file to load and deserialize
/// Output FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate object
///
public virtual FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate Clone() {
return ((FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate)(this.MemberwiseClone()));
}
#endregion
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "3.3.0.33572")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class FdoSpatialContextListSpatialContextExtentUpperRightCoordinate : System.ComponentModel.INotifyPropertyChanged {
[EditorBrowsable(EditorBrowsableState.Never)]
private string xField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string yField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string zField;
[EditorBrowsable(EditorBrowsableState.Never)]
private string mField;
private static System.Xml.Serialization.XmlSerializer serializer;
public string X {
get {
return this.xField;
}
set {
if ((this.xField != null)) {
if ((xField.Equals(value) != true)) {
this.xField = value;
this.OnPropertyChanged("X");
}
}
else {
this.xField = value;
this.OnPropertyChanged("X");
}
}
}
public string Y {
get {
return this.yField;
}
set {
if ((this.yField != null)) {
if ((yField.Equals(value) != true)) {
this.yField = value;
this.OnPropertyChanged("Y");
}
}
else {
this.yField = value;
this.OnPropertyChanged("Y");
}
}
}
public string Z {
get {
return this.zField;
}
set {
if ((this.zField != null)) {
if ((zField.Equals(value) != true)) {
this.zField = value;
this.OnPropertyChanged("Z");
}
}
else {
this.zField = value;
this.OnPropertyChanged("Z");
}
}
}
public string M {
get {
return this.mField;
}
set {
if ((this.mField != null)) {
if ((mField.Equals(value) != true)) {
this.mField = value;
this.OnPropertyChanged("M");
}
}
else {
this.mField = value;
this.OnPropertyChanged("M");
}
}
}
private static System.Xml.Serialization.XmlSerializer Serializer {
get {
if ((serializer == null)) {
serializer = new System.Xml.Serialization.XmlSerializer(typeof(FdoSpatialContextListSpatialContextExtentUpperRightCoordinate));
}
return serializer;
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string info) {
System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
if ((handler != null)) {
handler(this, new System.ComponentModel.PropertyChangedEventArgs(info));
}
}
#region Serialize/Deserialize
///
/// Serializes current FdoSpatialContextListSpatialContextExtentUpperRightCoordinate object into an XML document
///
/// string XML value
public virtual string Serialize() {
System.IO.StreamReader streamReader = null;
System.IO.MemoryStream memoryStream = null;
try {
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
return streamReader.ReadToEnd();
}
finally {
if ((streamReader != null)) {
streamReader.Dispose();
}
if ((memoryStream != null)) {
memoryStream.Dispose();
}
}
}
///
/// Deserializes workflow markup into an FdoSpatialContextListSpatialContextExtentUpperRightCoordinate object
///
/// string workflow markup to deserialize
/// Output FdoSpatialContextListSpatialContextExtentUpperRightCoordinate object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool Deserialize(string xml, out FdoSpatialContextListSpatialContextExtentUpperRightCoordinate obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextListSpatialContextExtentUpperRightCoordinate);
try {
obj = Deserialize(xml);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool Deserialize(string xml, out FdoSpatialContextListSpatialContextExtentUpperRightCoordinate obj) {
System.Exception exception = null;
return Deserialize(xml, out obj, out exception);
}
public static FdoSpatialContextListSpatialContextExtentUpperRightCoordinate Deserialize(string xml) {
System.IO.StringReader stringReader = null;
try {
stringReader = new System.IO.StringReader(xml);
return ((FdoSpatialContextListSpatialContextExtentUpperRightCoordinate)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
}
finally {
if ((stringReader != null)) {
stringReader.Dispose();
}
}
}
///
/// Serializes current FdoSpatialContextListSpatialContextExtentUpperRightCoordinate object into file
///
/// full path of outupt xml file
/// output Exception value if failed
/// true if can serialize and save into file; otherwise, false
public virtual bool SaveToFile(string fileName, out System.Exception exception) {
exception = null;
try {
SaveToFile(fileName);
return true;
}
catch (System.Exception e) {
exception = e;
return false;
}
}
public virtual void SaveToFile(string fileName) {
System.IO.StreamWriter streamWriter = null;
try {
string xmlString = Serialize();
System.IO.FileInfo xmlFile = new System.IO.FileInfo(fileName);
streamWriter = xmlFile.CreateText();
streamWriter.WriteLine(xmlString);
streamWriter.Close();
}
finally {
if ((streamWriter != null)) {
streamWriter.Dispose();
}
}
}
///
/// Deserializes xml markup from file into an FdoSpatialContextListSpatialContextExtentUpperRightCoordinate object
///
/// string xml file to load and deserialize
/// Output FdoSpatialContextListSpatialContextExtentUpperRightCoordinate object
/// output Exception value if deserialize failed
/// true if this XmlSerializer can deserialize the object; otherwise, false
public static bool LoadFromFile(string fileName, out FdoSpatialContextListSpatialContextExtentUpperRightCoordinate obj, out System.Exception exception) {
exception = null;
obj = default(FdoSpatialContextListSpatialContextExtentUpperRightCoordinate);
try {
obj = LoadFromFile(fileName);
return true;
}
catch (System.Exception ex) {
exception = ex;
return false;
}
}
public static bool LoadFromFile(string fileName, out FdoSpatialContextListSpatialContextExtentUpperRightCoordinate obj) {
System.Exception exception = null;
return LoadFromFile(fileName, out obj, out exception);
}
public static FdoSpatialContextListSpatialContextExtentUpperRightCoordinate LoadFromFile(string fileName) {
System.IO.FileStream file = null;
System.IO.StreamReader sr = null;
try {
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
}
finally {
if ((file != null)) {
file.Dispose();
}
if ((sr != null)) {
sr.Dispose();
}
}
}
#endregion
#region Clone method
///
/// Create a clone of this FdoSpatialContextListSpatialContextExtentUpperRightCoordinate object
///
public virtual FdoSpatialContextListSpatialContextExtentUpperRightCoordinate Clone() {
return ((FdoSpatialContextListSpatialContextExtentUpperRightCoordinate)(this.MemberwiseClone()));
}
#endregion
}
}