资源简介
代码片段和文件信息
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个文件信息
相关资源
- dc竞赛房租处理数据
- C# NPOI生成word插入图片和表格
- 第二代Kinect WPF开发从入门到精通资料
- WinForm GeckoFx33 Demo JS与C#互交 窗口浏览
- c#winform中完美代替WebBrowser最新的控件
- 最新 Ext甘特图控件 + Ext日程控件 破解
- Illustrated C# 2010 C# 4.0图解教程
- Codejock Xtreme Suite Pro ActiveX 15.3.1 零售版
- Angle - Bootstrap Admin Template2016最新版V
- 3D打印机上位机源码Reprap Host 是C#写的
-
Databa
se2Sharp代码生成工具19.0已注册 - WPF21个优秀项目及源码
- SciChart控件破解方法见包内
- 上位机与PLC通讯dll.zip
- C# 7 and .NET Core: Modern Cross-Platform Deve
- C# 5.0 in a Nutshell 5th Edition.pdf
-
C# 6.0 and the .NET 4.6 fr
amework(7th). - ASP.NET Core 2 and Vue.js 1st Edition
- Professional+DevExpress+ASP.NET+Controls.pdf
- C# 6.0 in a Nutshell.pdf
- C#操作3D的好工具-OpenTK封装了OPENGL
- halcon 与C#之HWindow鼠标控制图片缩放,
- C#生辰八字生成器源码
- aspose包括Aspose.words、Aspose.Cells、Aspo
- WPF开发框架
- DevExpress WinForm中文文档
- Beginning C# 7 Programming with Visual Studio
- DevexpressWinform中文文档
- Essential C# 7.0
- Devexpress Winform中文文档纯中文文档N
评论
共有 条评论