diff Chronosv2/source/Extensions/Converter.cs @ 10:443821e55f06

Initial cleaned up add from Codeplex files
author stevenh7776 stevenhollidge@hotmail.com
date Tue, 21 Feb 2012 17:25:44 +0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Chronosv2/source/Extensions/Converter.cs	Tue Feb 21 17:25:44 2012 +0700
@@ -0,0 +1,39 @@
+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
+    }
+}
\ No newline at end of file