Click here to Skip to main content
15,793,118 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get the form at design time to the center of the screen Pin
Richard MacCutchan15-May-20 23:03
mveRichard MacCutchan15-May-20 23:03 
AnswerRe: How to get the form at design time to the center of the screen Pin
kalberts16-May-20 5:13
kalberts16-May-20 5:13 
AnswerRe: How to get the form at design time to the center of the screen Pin
Dave Kreskowiak16-May-20 5:38
mveDave Kreskowiak16-May-20 5:38 
GeneralRe: How to get the form at design time to the center of the screen Pin
Member 1297423516-May-20 10:27
Member 1297423516-May-20 10:27 
GeneralRe: How to get the form at design time to the center of the screen Pin
Dave Kreskowiak16-May-20 10:42
mveDave Kreskowiak16-May-20 10:42 
GeneralRe: How to get the form at design time to the center of the screen Pin
kalberts16-May-20 11:57
kalberts16-May-20 11:57 
QuestionReflection for Class Pin
Oscar K.14-May-20 1:57
Oscar K.14-May-20 1:57 
AnswerRe: Reflection for Class Pin
Pete O'Hanlon14-May-20 2:33
subeditorPete O'Hanlon14-May-20 2:33 
The variables are known as fields. If you do Type.GetFields for the type, you get the list of fields returned as a FieldInfo array. So, if you wanted a list of all public or static fields (as an example), you could write something like this (this is a generic method to do this):
C#
public static class MetadataInfo
{
  public static FieldInfo[] GetFields<T>()
  {
    return typeof(T).GetFields(BindingFlags.Public | BindingFlags.Static);
  }
}


GeneralRe: Reflection for Class Pin
Oscar K.14-May-20 3:01
Oscar K.14-May-20 3:01 
GeneralRe: Reflection for Class Pin
Eddy Vluggen14-May-20 3:43
professionalEddy Vluggen14-May-20 3:43 
GeneralRe: Reflection for Class Pin
Richard Deeming14-May-20 3:46
mveRichard Deeming14-May-20 3:46 
GeneralRe: Reflection for Class Pin
Oscar K.14-May-20 5:33
Oscar K.14-May-20 5:33 
QuestionIs there a way to implement radio button in property grid Pin
Member 1482116713-May-20 2:33
Member 1482116713-May-20 2:33 
GeneralRe: Is there a way to implement radio button in property grid Pin
harold aptroot13-May-20 3:14
harold aptroot13-May-20 3:14 
AnswerRe: Is there a way to implement radio button in property grid Pin
Eddy Vluggen13-May-20 11:19
professionalEddy Vluggen13-May-20 11:19 
QuestionWeb and Environment Variables Pin
ormonds12-May-20 21:07
ormonds12-May-20 21:07 
AnswerRe: Web and Environment Variables Pin
Richard MacCutchan12-May-20 22:22
mveRichard MacCutchan12-May-20 22:22 
AnswerRe: Web and Environment Variables Pin
Richard Deeming13-May-20 1:17
mveRichard Deeming13-May-20 1:17 
AnswerRe: Web and Environment Variables Pin
Dave Kreskowiak13-May-20 7:44
mveDave Kreskowiak13-May-20 7:44 
Questioncan any one help me and write this code please Pin
Member 1483029312-May-20 14:52
Member 1483029312-May-20 14:52 
AnswerRe: can any one help me and write this code please Pin
Pete O'Hanlon12-May-20 21:53
subeditorPete O'Hanlon12-May-20 21:53 
AnswerRe: can any one help me and write this code please Pin
Richard MacCutchan12-May-20 22:35
mveRichard MacCutchan12-May-20 22:35 
AnswerRe: can any one help me and write this code please Pin
Dave Kreskowiak13-May-20 7:42
mveDave Kreskowiak13-May-20 7:42 
AnswerRe: can any one help me and write this code please Pin
#realJSOP15-May-20 2:57
mve#realJSOP15-May-20 2:57 
QuestionMake a simple shape/pattern Pin
M.S.S.E10-May-20 11:36
M.S.S.E10-May-20 11:36 

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.