view Chronosv2/source/Extensions/Converter.cs @ 21:dfc81f8bb838

working version for sttocks except ui within metrowpf
author adminsh@apollo
date Tue, 20 Mar 2012 15:07:31 +0000
parents 443821e55f06
children
line wrap: on
line source

using System;

namespace Chronos.Extensions
{
    /// <summary>
    /// An internal implementation of the IConverter&lt;T&gt; interface
    /// </summary>
    /// <typeparam name="T"></typeparam>
    internal class Converter<T> 
        : IConverter<T>
    {
        #region · Properties ·

        /// <summary>
        /// Gets the internal value to be converted.
        /// </summary>
        /// <value>The value.</value>
        public T Value
        {
            get;
            protected set;
        }

        #endregion

        #region · Methods ·

        /// <summary>
        /// Initializes a new instance of the <see cref="Converter&lt;T&gt;"/> class.
        /// </summary>
        /// <param name="value">The value.</param>
        public Converter(T value)
        {
            this.Value = value;
        }

        #endregion
    }
}