Src/Pscx.Core/IO/PscxPathInfo.cs
/// <summary>
/// Returns a System.Management.Automation.PathInfo object representing the resolved path.
/// </summary>
/// <returns>A PathInfo object representing an existing path.</returns>
/// <exception cref="System.InvalidOperationException">An InvalidOperationException is thrown if this instance represents a literal path.</exception>
Returns a System.Management.Automation.PathInfo object representing the resolved path.
Returns a System . Management . Automation . PathInfo object representing the resolved path .
public PathInfo ToPathInfo()
        {
            EnsureValid();
            if (_pathInfo == null)
            {
                throw new PSInvalidOperationException(
                    "This object represents a literal (unresolved) path. A PathInfo can only represent a resolved path.");
            }
            return _pathInfo;
        }
public PathInfo ToPathInfo ( ) { EnsureValid ( ) ; if ( _pathInfo == null ) { throw new PSInvalidOperationException ( " " ) ; } return _pathInfo ; }
Returns a System.Management.Automation.PathInfo object representing the resolved path.
Returns a System . Management . Automation . PathInfo object representing the resolved path .
// TODO: localize
A PathInfo object representing an existing path.
A PathInfo object representing an existing path .
An InvalidOperationException is thrown if this instance represents a literal path.
An InvalidOperationException is thrown if this instance represents a literal path .