Download PhotoshopColorSwatchWriter.zip version 1.0.0.0, last updated 28/01/2014 (16.86 KB)

Download
  • md5: c5498aad2487ba4d5b87707f27e9eb30
using System.IO;

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

namespace PhotoshopColorSwatchWriter
{
  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