Download PhotoshopColorSwatchLoader.zip version 1.0.0.0, last updated 22/01/2014 (24.13 KB)

Download
  • md5: ea73aa398ec190b0794416866e79de48
using System.IO;

// Reading PhotoShop Color Swatch (aco) files using C#
// http://cyotek.com/blog/reading-photoshop-color-swatch-aco-files-using-csharp

namespace PhotoShopColorSwatchLoader
{
  internal sealed class FileInfo
  {
    #region Public Constructors

    public FileInfo(string fullPath)
    {
      this.FullPath = fullPath;
    }

    #endregion

    #region Overridden Methods

    /// <summary>
    /// Returns a string that represents the current object.
    /// </summary>
    /// <returns>
    /// A string that represents the current object.
    /// </returns>
    public override string ToString()
    {
      return Path.GetFileName(this.FullPath) ?? base.ToString();
    }

    #endregion

    #region Public Properties

    public string FullPath { get; set; }

    #endregion
  }
}

Donate

Donate