Click here to Skip to main content
15,894,540 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# function(out byte buffer, ..) and its ActiveX module in C++ function(unsigned char* buffer, ... Pin
Luc Pattyn4-Nov-09 2:13
sitebuilderLuc Pattyn4-Nov-09 2:13 
QuestionXML Query in C# Pin
Priyagdpl3-Nov-09 19:15
Priyagdpl3-Nov-09 19:15 
AnswerRe: XML Query in C# Pin
N a v a n e e t h3-Nov-09 19:17
N a v a n e e t h3-Nov-09 19:17 
AnswerRe: XML Query in C# Pin
Christian Graus3-Nov-09 19:19
protectorChristian Graus3-Nov-09 19:19 
QuestionHow to Get Property attribute from instance variable Pin
mmdullah3-Nov-09 17:17
mmdullah3-Nov-09 17:17 
AnswerRe: How to Get Property attribute from instance variable Pin
Christian Graus3-Nov-09 18:10
protectorChristian Graus3-Nov-09 18:10 
GeneralRe: How to Get Property attribute from instance variable Pin
mmdullah3-Nov-09 19:24
mmdullah3-Nov-09 19:24 
GeneralRe: How to Get Property attribute from instance variable Pin
King Julien3-Nov-09 20:05
King Julien3-Nov-09 20:05 
As Graus said, i too dont find its a better solution for this problem!

but still, you can get the custom attribute values by the following statement.

colNameAttribute mAttribInstance = (colNameAttribute)c.GetType()
                    .GetCustomAttributes(typeof(colNameAttribute),false).GetValue(0);

///remember the array index is 0. you can change it accordingly... //// 


The object mAttribInstance will hold the various properties values within your "colName" attribute class. and you can access them by their respective name..

for e.g if "name" is the string used then,

mAttribInstance.Name will give you the value "theColumn"

Have a Happy Coding.....

GeneralRe: How to Get Property attribute from instance variable Pin
mmdullah4-Nov-09 18:26
mmdullah4-Nov-09 18:26 
GeneralRe: How to Get Property attribute from instance variable Pin
King Julien4-Nov-09 20:05
King Julien4-Nov-09 20:05 
QuestionCommand Window Pin
lagdaemon3-Nov-09 16:38
lagdaemon3-Nov-09 16:38 
AnswerRe: Command Window Pin
OriginalGriff3-Nov-09 21:18
mveOriginalGriff3-Nov-09 21:18 
GeneralRe: Command Window Pin
lagdaemon4-Nov-09 12:46
lagdaemon4-Nov-09 12:46 
QuestionHow to draw a picture then it can follow with cursor Pin
comlihongbin3-Nov-09 14:15
comlihongbin3-Nov-09 14:15 
AnswerRe: How to draw a picture then it can follow with cursor Pin
Christian Graus3-Nov-09 14:45
protectorChristian Graus3-Nov-09 14:45 
GeneralRe: How to draw a picture then it can follow with cursor Pin
comlihongbin3-Nov-09 15:40
comlihongbin3-Nov-09 15:40 
GeneralRe: How to draw a picture then it can follow with cursor Pin
Christian Graus3-Nov-09 16:30
protectorChristian Graus3-Nov-09 16:30 
GeneralRe: How to draw a picture then it can follow with cursor Pin
comlihongbin3-Nov-09 15:46
comlihongbin3-Nov-09 15:46 
QuestionReport Building help please... Pin
JollyMansArt3-Nov-09 12:43
JollyMansArt3-Nov-09 12:43 
QuestionHow does C# support and implement exception handling? Pin
cateyes993-Nov-09 12:01
cateyes993-Nov-09 12:01 
AnswerRe: How does C# support and implement exception handling? Pin
PIEBALDconsult3-Nov-09 12:10
mvePIEBALDconsult3-Nov-09 12:10 
GeneralRe: How does C# support and implement exception handling? Pin
cateyes993-Nov-09 12:14
cateyes993-Nov-09 12:14 
GeneralRe: How does C# support and implement exception handling? Pin
harold aptroot3-Nov-09 12:16
harold aptroot3-Nov-09 12:16 
GeneralRe: How does C# support and implement exception handling? Pin
cateyes995-Nov-09 16:11
cateyes995-Nov-09 16:11 
QuestionDebug vs. Release Pin
zafersavas3-Nov-09 10:58
zafersavas3-Nov-09 10:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.