Src/Pscx.Core/IO/PscxPathInfo.cs
/// <summary>
/// Converts an object into its XML representation.
/// </summary>
/// <param name="writer">The <see cref="T:System.Xml.XmlWriter"/> stream to which the object is serialized. 
///                 </param>
Converts an object into its XML representation.
Converts an object into its XML representation .
void IXmlSerializable.WriteXml(XmlWriter writer)
        {
            writer.WriteStartElement(GetType().Name);
            writer.WriteAttributeString("SourcePath", _sourcePath);
            writer.WriteAttributeString("ProviderPath", _providerPath);
            writer.WriteAttributeString("NoGlobbing", _isUnresolved.ToString());
            writer.WriteEndElement();
        }
void IXmlSerializable . WriteXml ( XmlWriter writer ) { writer . WriteStartElement ( GetType ( ) . Name ) ; writer . WriteAttributeString ( " " , _sourcePath ) ; writer . WriteAttributeString ( " " , _providerPath ) ; writer . WriteAttributeString ( " " , _isUnresolved . ToString ( ) ) ; writer . WriteEndElement ( ) ; }
Converts an object into its XML representation.
Converts an object into its XML representation .
/*
                    private bool _isUnresolved;
                    private string _providerPath;
                    private string _sourcePath;
                    private PscxPathState _state = PscxPathState.Resolved;
                    private PSDriveInfo _driveInfo = null;
                    private ProviderInfo _providerInfo = null;
                    private PathInfo _pathInfo = null;
            */ //writer.WriteStartElement //writer.WriteAttributeString("HairLength", Enum.GetName(typeof(HairLength), HairLength)); //writer.WriteAttributeString("Key", Key.ToString());
writer
XmlWriter
The  stream to which the object is serialized.
The stream to which the object is serialized .