Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create window installer in .Net Pin
Praveen Raghuvanshi5-Oct-06 22:34
professionalPraveen Raghuvanshi5-Oct-06 22:34 
QuestionHow to make an EventHandler for array of buttons Pin
t_nedelchev4-Oct-06 3:51
t_nedelchev4-Oct-06 3:51 
AnswerRe: How to make an EventHandler for array of buttons Pin
Utkarshraj Atmaram4-Oct-06 4:19
Utkarshraj Atmaram4-Oct-06 4:19 
QuestionProcess.start Pin
Support1234-Oct-06 3:32
Support1234-Oct-06 3:32 
AnswerRe: Process.start Pin
Eric Dahlvang4-Oct-06 3:55
Eric Dahlvang4-Oct-06 3:55 
GeneralRe: Process.start ERROR Pin
Support1234-Oct-06 5:46
Support1234-Oct-06 5:46 
GeneralRe: Process.start ERROR Pin
Eric Dahlvang4-Oct-06 6:17
Eric Dahlvang4-Oct-06 6:17 
GeneralRe: Process.start ERROR Pin
Support1234-Oct-06 21:39
Support1234-Oct-06 21:39 
QuestionResources.resx query Pin
Utkarshraj Atmaram4-Oct-06 2:57
Utkarshraj Atmaram4-Oct-06 2:57 
AnswerRe: Resources.resx query Pin
Eric Dahlvang4-Oct-06 4:50
Eric Dahlvang4-Oct-06 4:50 
GeneralRe: Resources.resx query Pin
Utkarshraj Atmaram4-Oct-06 17:29
Utkarshraj Atmaram4-Oct-06 17:29 
QuestionSystem.IO.FileNotFoundException: The specified module could not be found. Pin
Elena_2006oct4-Oct-06 1:46
Elena_2006oct4-Oct-06 1:46 
AnswerRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
Gael Fraiteur4-Oct-06 1:49
Gael Fraiteur4-Oct-06 1:49 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. [modified] Pin
Elena_2006oct6-Oct-06 2:18
Elena_2006oct6-Oct-06 2:18 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
Gael Fraiteur6-Oct-06 2:28
Gael Fraiteur6-Oct-06 2:28 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
Elena_2006oct6-Oct-06 2:36
Elena_2006oct6-Oct-06 2:36 
QuestionHTML/String parsing Pin
Imtiaz Murtaza4-Oct-06 1:23
Imtiaz Murtaza4-Oct-06 1:23 
AnswerRe: HTML/String parsing Pin
Liron Hirsch4-Oct-06 1:49
Liron Hirsch4-Oct-06 1:49 
AnswerRe: HTML/String parsing Pin
Ravi Bhavnani4-Oct-06 4:12
professionalRavi Bhavnani4-Oct-06 4:12 
QuestionDynamic cast in C# Pin
WSonck4-Oct-06 1:14
WSonck4-Oct-06 1:14 
AnswerRe: Dynamic cast in C# Pin
User 66584-Oct-06 1:20
User 66584-Oct-06 1:20 
GeneralRe: Dynamic cast in C# Pin
WSonck4-Oct-06 1:33
WSonck4-Oct-06 1:33 
AnswerRe: Dynamic cast in C# Pin
Colin Angus Mackay4-Oct-06 1:37
Colin Angus Mackay4-Oct-06 1:37 
GeneralRe: Dynamic cast in C# Pin
WSonck4-Oct-06 4:19
WSonck4-Oct-06 4:19 
AnswerRe: Dynamic cast in C# Pin
f*** YOU4-Oct-06 5:00
f*** YOU4-Oct-06 5:00 
WSonck wrote:
In C++ there is dynamic_cast<>, but I don't know how to do this in C#. I expect that you can help me.


Don't use is when your casting because first you must find its type and then make the apropriate cast. The as statement is a much better choice as it does both type checking and casting in one operation. Using the is way forces you to check the types type twice because you must first check the type using is and then cast which also checks the type. The as will return null if it not compatible with that type.


SomeObject sobj = new SomeObject();

ADifferentObject diffObj = sobj as SomeObject(); //will return null if SomeObject is not a base class of ADiffObject



=====Brain melting code=====
static int Sqrt(int x){ if (x<0) throw new ArgumentOutOfRangeException(); int temp, y=0, b=0x8000, bshft=15, v=x; do { if (v>=(temp=(y<<1)+b<<bshft--)) { y+=b; v-=temp; } } while ((b>>=1)>0); return y; :omg:
====TSI TLFL EEOOLHTG=====
^^^^^^^^^^^^^^^^^
Decode that and you will win.;P
============Hint===========
cout << "33 20 57 4F 52 44 53 62 63 6B 77 6F 72 64 73";

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.