diff MetroWpf/MetroWpf.Framework/Extensions/Converter.cs @ 15:060f02cd4591

Initial commit, pre airport work
author stevenh7776 stevenhollidge@hotmail.com
date Mon, 12 Mar 2012 23:05:21 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MetroWpf/MetroWpf.Framework/Extensions/Converter.cs	Mon Mar 12 23:05:21 2012 +0800
@@ -0,0 +1,39 @@
+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
+    }
+}
\ No newline at end of file