view MetroWpf/MetroWpf.Framework/Extensions/Converter.cs @ 27:96fdf58e05b4

Server working with sockets and rabbitmq
author adminsh@apollo
date Wed, 21 Mar 2012 19:00:59 +0000
parents 060f02cd4591
children
line wrap: on
line source

using System;

namespace MetroWpf
{
    /// <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
    }
}