+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-using namespace System::ComponentModel;\r
-\r
-namespace SlimDX\r
-{\r
- value class Half;\r
-\r
- namespace Design\r
- {\r
- /// <summary>\r
- /// Provides a type converter to convert <see cref="Half"/> objects to and from various \r
- /// other representations.\r
- /// </summary>\r
- public ref class HalfConverter : System::ComponentModel::ExpandableObjectConverter\r
- {\r
- public:\r
- /// <summary>\r
- /// Initializes a new instance of the <see cref="HalfConverter"/> class.\r
- /// </summary>\r
- HalfConverter() { }\r
-\r
- /// <summary>\r
- /// Returns whether this converter can convert the object to the specified type, using the specified context.\r
- /// </summary>\r
- /// <param name="context">A <see cref="System::ComponentModel::ITypeDescriptorContext"/> that provides a format context.</param>\r
- /// <param name="destinationType">A <see cref="System::Type"/> that represents the type you want to convert to.</param>\r
- /// <returns><c>true</c> if this converter can perform the conversion; otherwise, <c>false</c>.</returns>\r
- virtual bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext^ context, \r
- System::Type^ destinationType) override;\r
-\r
- /// <summary>\r
- /// Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.\r
- /// </summary>\r
- /// <param name="context">A <see cref="System::ComponentModel::ITypeDescriptorContext"/> that provides a format context.</param>\r
- /// <param name="sourceType">A System::Type that represents the type you want to convert from.</param>\r
- /// <returns><c>true</c> if this converter can perform the conversion; otherwise, <c>false</c>.</returns>\r
- virtual bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext^ context, \r
- System::Type^ sourceType) override;\r
-\r
- /// <summary>\r
- /// Converts the given value object to the specified type, using the specified context and culture information.\r
- /// </summary>\r
- /// <param name="context">A <see cref="System::ComponentModel::ITypeDescriptorContext"/> that provides a format context.</param>\r
- /// <param name="culture">A <see cref="System::Globalization::CultureInfo"/>. If <c>null</c> is passed, the current culture is assumed.</param>\r
- /// <param name="value">The <see cref="System::Object"/> to convert.</param>\r
- /// <param name="destinationType">A <see cref="System::Type"/> that represents the type you want to convert to.</param>\r
- /// <returns>An <see cref="System::Object"/> that represents the converted value.</returns>\r
- virtual System::Object^ ConvertTo(System::ComponentModel::ITypeDescriptorContext^ context, \r
- System::Globalization::CultureInfo^ culture, System::Object^ value, System::Type^ destinationType) override;\r
-\r
- /// <summary>\r
- /// Converts the given object to the type of this converter, using the specified context and culture information.\r
- /// </summary>\r
- /// <param name="context">A <see cref="System::ComponentModel::ITypeDescriptorContext"/> that provides a format context.</param>\r
- /// <param name="culture">A <see cref="System::Globalization::CultureInfo"/>. If <c>null</c> is passed, the current culture is assumed.</param>\r
- /// <param name="value">The <see cref="System::Object"/> to convert.</param>\r
- /// <returns>An <see cref="System::Object"/> that represents the converted value.</returns>\r
- virtual System::Object^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext^ context, \r
- System::Globalization::CultureInfo^ culture, System::Object^ value) override;\r
- };\r
- }\r
-}
\ No newline at end of file