• 大小: 1.00M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: wpf  d  wp  oa  a  

资源简介


资源截图

代码片段和文件信息

using System;


namespace Hurst
{
    public static class EnumHelper
    {
        /// 
        /// Gets an attribute on an enum field value
        /// 

        /// The type of the attribute you want to retrieve
        /// The enum value
        /// The attribute of type T that exists on the enum value
        public static T GetAttributeOfType(this Enum enumVal) where T : System.Attribute
        {
            var type = enumVal.GetType();
            var memInfo = type.GetMember(enumVal.ToString());
            var attributes = memInfo[0].GetCustomAttributes(typeof(T) false);
            return (attributes.Length > 0) ? (T)attributes[0] : null;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    I.A....      5035  2012-02-26 10:21  VirtualKeyboard\ClassDiagram1.cd

    I.A....       453  2014-07-12 21:40  VirtualKeyboard\Clean.ps1

    I.A....       163  2014-02-10 09:55  VirtualKeyboard\DemoApplic\app.config

    I.A....       554  2013-06-13 22:02  VirtualKeyboard\DemoApplic\App.xaml

    I.A....       583  2013-06-13 22:01  VirtualKeyboard\DemoApplic\App.xaml.cs

    I.A....      3473  2014-02-13 01:27  VirtualKeyboard\DemoApplic\ApplicationViewModel.cs

    I.A....       181  2011-01-09 23:57  VirtualKeyboard\DemoApplic\Images\iconKeyboard_16x9.png

    I.A....       929  2008-04-03 18:58  VirtualKeyboard\DemoApplic\Images\TextureR40x40.png

    I.A.SH.      3584  2013-06-13 23:23  VirtualKeyboard\DemoApplic\Images\Thumbs.db

    I.A....      2694  2014-02-12 18:41  VirtualKeyboard\DemoApplic\MainWindow.xaml

    I.A....      6366  2014-02-13 01:29  VirtualKeyboard\DemoApplic\MainWindow.xaml.cs

    I.A....      2334  2014-02-13 09:26  VirtualKeyboard\DemoApplic\Properties\AssemblyInfo.cs

    I.A....      2892  2014-02-10 09:55  VirtualKeyboard\DemoApplic\Properties\Resources.Designer.cs

    I.A....      5612  2011-01-06 00:49  VirtualKeyboard\DemoApplic\Properties\Resources.resx

    I.A....      1977  2014-02-10 09:55  VirtualKeyboard\DemoApplic\Properties\Settings.Designer.cs

    I.A....       570  2013-06-13 22:18  VirtualKeyboard\DemoApplic\Properties\Settings.settings

    I.A....      5414  2014-02-13 12:11  VirtualKeyboard\DemoApplic\VirtualKeyboardDemoApplic_Vs2008.csproj

    I.A....      1962  2014-02-13 04:00  VirtualKeyboard\DemoApplic\VirtualKeyboardDemoApplic_Vs2008.sln

    I.A....      7460  2014-02-13 02:56  VirtualKeyboard\DemoApplic\VirtualKeyboardDemoApplic_Vs2010.csproj

    I.A....      6005  2014-02-13 02:56  VirtualKeyboard\DemoApplic\VirtualKeyboardDemoApplic_Vs2010.sln

    I.A....      5041  2014-09-07 18:34  VirtualKeyboard\DemoApplic\VirtualKeyboardDemoApplic_Vs2012.sln

    I.A....      7454  2014-09-07 18:34  VirtualKeyboard\DemoApplic\VirtualKeyboardDemoApplic_Vs2013.csproj

    I.A....     57176  2011-03-08 17:26  VirtualKeyboard\Fonts\Quattrocento-Regular.otf

    I.A....     14471  2013-06-12 01:43  VirtualKeyboard\HelpFiles\SanskritVK.xaml

    I.A....       709  2013-06-12 01:50  VirtualKeyboard\HelpFiles\SanskritVK.xaml.cs

    I.A....     12389  2013-06-12 01:43  VirtualKeyboard\HelpFiles\TamilVK.xaml

    I.A....       698  2013-06-12 01:50  VirtualKeyboard\HelpFiles\TamilVK.xaml.cs

    I.A....      1202  2013-06-12 01:50  VirtualKeyboard\IInjectableControl.cs

    I.A....      5810  2003-05-21 18:09  VirtualKeyboard\Images\bgGreenTexture2.jpg

    I.A....       606  2007-03-15 13:31  VirtualKeyboard\Images\Q13x15.gif

............此处省略156个文件信息

评论

共有 条评论