Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: OleDbDataReader Question - Urgent- Please Help!!! Pin
Michael Potter5-Sep-07 11:40
Michael Potter5-Sep-07 11:40 
AnswerRe: OleDbDataReader Question - Urgent- Please Help!!! Pin
Pete O'Hanlon5-Sep-07 11:48
subeditorPete O'Hanlon5-Sep-07 11:48 
QuestionMultiple forms subscribing to the same event and data? Pin
basi00145-Sep-07 10:42
basi00145-Sep-07 10:42 
QuestionOleDbDataReader Question C# Pin
aro19815-Sep-07 10:26
aro19815-Sep-07 10:26 
QuestionThrowing events in unmanaged code Pin
Berlus5-Sep-07 10:12
Berlus5-Sep-07 10:12 
AnswerRe: Throwing events in unmanaged code Pin
Judah Gabriel Himango5-Sep-07 11:33
sponsorJudah Gabriel Himango5-Sep-07 11:33 
AnswerRe: Throwing events in unmanaged code Pin
Luc Pattyn5-Sep-07 11:48
sitebuilderLuc Pattyn5-Sep-07 11:48 
QuestionQuery Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 8:54
Amar Chaudhary5-Sep-07 8:54 
With the help of Yesterday`s discussion[^] and this[^] I worked am getting all the type in system.Windows.Forms

Code:
<font>AssemblyName name = new AssemblyName("System.Windows.Forms");
name.CultureInfo = new System.Globalization.CultureInfo("");
name.SetPublicKeyToken(new byte[] {0xb7, 0x7a, 0x5c, 0x56, 0x19, 0x34, 0xe0, 0x89});
name.Version = new Version(2, 0, 0, 0);
Assembly a = Assembly.Load(name);
Type[] types = a.GetTypes();
foreach (Type t in types)
{
    if (t.Namespace == "System.Windows.Forms")
    listBox1.Items.Add(t.ToString());
}
MessageBox.Show(listBox1.Items.Count.ToString());
</font>

I didnt Understand the meaning of
<br />
name.SetPublicKeyToken(new byte[] {0xb7,0x7a, 0x5c, 0x56, 0x19, 0x34, 0xe0, 0x89});<br />


Can you Explain This
Thanks & Regards
Amar Chaudhary



It is Good to be Important but!
it is more Important to be Good

AnswerRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:08
TJoe5-Sep-07 9:08 
JokeRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:11
Amar Chaudhary5-Sep-07 9:11 
QuestionRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:13
Amar Chaudhary5-Sep-07 9:13 
AnswerRe: Query Regarding SetPublicKeyToken Pin
Dave Kreskowiak5-Sep-07 9:17
mveDave Kreskowiak5-Sep-07 9:17 
GeneralRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:54
Amar Chaudhary5-Sep-07 9:54 
AnswerRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:21
TJoe5-Sep-07 9:21 
JokeRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:39
Amar Chaudhary5-Sep-07 9:39 
GeneralRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:50
TJoe5-Sep-07 9:50 
GeneralRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:58
Amar Chaudhary5-Sep-07 9:58 
Questioncan u help me with a if question? Pin
andredani5-Sep-07 8:39
andredani5-Sep-07 8:39 
AnswerRe: can u help me with a if question? Pin
Larantz5-Sep-07 8:44
Larantz5-Sep-07 8:44 
AnswerRe: can u help me with a if question? Pin
TJoe5-Sep-07 8:46
TJoe5-Sep-07 8:46 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 0:32
andredani6-Sep-07 0:32 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 1:58
TJoe6-Sep-07 1:58 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 3:08
andredani6-Sep-07 3:08 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 3:15
TJoe6-Sep-07 3:15 
GeneralRe: can u help me with a if question? [modified] Pin
andredani6-Sep-07 3:34
andredani6-Sep-07 3:34 

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.