Create() 공개 메소드

Factory method to create a new PurePath instance based upon the current operating system.
public Create ( ) : IPath
리턴 IPath
예제 #1
0
        /// <inheritdoc/>
        public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
        {
            var path = value as string;

            if (path != null)
            {
                return(_factory.Create(path));
            }
            return(base.ConvertFrom(context, culture, value));
        }
예제 #2
0
 /// <summary>
 /// Factory method to create a new <see cref="Path"/> instance
 /// based upon the current operating system.
 /// </summary>
 /// <param name="paths"></param>
 /// <returns></returns>
 public static IPath Create(params string[] paths)
 {
     return(Factory.Create(FactoryOptions, paths));
 }