Welcome to Bangladesh Microsoft Technology Community
Sign in
|
Join
|
Help
Shahed Khan (MVP C#)
This Blog
About
Nov
December 2006
Jan
S
M
T
W
T
F
S
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
Syndication
RSS 2.0
Atom 1.0
Search
Go
Archives
December 2008 (3)
October 2008 (5)
September 2008 (2)
August 2008 (2)
July 2008 (2)
June 2008 (3)
May 2008 (6)
March 2008 (2)
February 2008 (7)
January 2008 (7)
December 2007 (5)
November 2007 (4)
October 2007 (6)
September 2007 (6)
August 2007 (1)
July 2007 (5)
June 2007 (1)
May 2007 (6)
April 2007 (7)
March 2007 (9)
February 2007 (12)
January 2007 (21)
December 2006 (11)
November 2006 (15)
News
I am a Microsoft Certified Application Developer
MCAD Chartered Member (C# .Net)
and born in Bangladesh.
I work for Ocean Informatics Pty Ltd. as a Senior Developer - Analyst.
I am also co-founder and core developer of Pageflakes (acquired by LiveUniverse)
www.pageflakes.com
My Articles
Flexible and Plugin based .Net Application..
Mass Emailing Functionality with C#, .NET 2.0, and Microsoft® SQL Server 2005 Service Broker'
Write your own Code Generator or Template Engine in .NET
Navigation
Home
Blogs
Forums
Photos
Files
Tuesday, December 05, 2006 - Posts
Tuesday, December 05, 2006 11:52 PM
Set Enum Value with reflection .Net1.1 and .Net2.0
While trying to set value for enum via Reflection I discovered .Net2.0 is much smarter in setting values.In .Net2.0 the following works: Int32 property = int.Parse("20");if (propertyInfo.CanWrite){ this.propertyInfo.SetValue(ParentPage.TheProperties,
posted by
Shahed
|
0 Comments
Tuesday, December 05, 2006 9:42 PM
How to Get Enum Values with Reflection in C#
This came up when I was writing a UIProperty for SmartCodeGenerator, The combo box should display all the available enum options in a DropDownList for the enduser to choose from them.So if someone defines a enum like this:public enum MyEnum{
posted by
Shahed
|
0 Comments