Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: matrix multiplication in 3*3d enter by the user Pin
Heath Stewart27-Apr-04 3:19
protectorHeath Stewart27-Apr-04 3:19 
Generalsend xml Pin
hmdhmd27-Apr-04 1:56
hmdhmd27-Apr-04 1:56 
GeneralRe: send xml Pin
Heath Stewart27-Apr-04 3:23
protectorHeath Stewart27-Apr-04 3:23 
GeneralAxHost Pin
ouysal27-Apr-04 1:01
ouysal27-Apr-04 1:01 
GeneralRe: AxHost Pin
Heath Stewart27-Apr-04 3:26
protectorHeath Stewart27-Apr-04 3:26 
Generallist all machines on local domain with c# Pin
doph27-Apr-04 0:48
doph27-Apr-04 0:48 
GeneralRe: list all machines on local domain with c# Pin
Heath Stewart27-Apr-04 3:34
protectorHeath Stewart27-Apr-04 3:34 
GeneralFunny Exception Pin
sreejith ss nair27-Apr-04 0:45
sreejith ss nair27-Apr-04 0:45 
:-Ohay there,

Before getting into any solution please read the entire message. See we have Exception Class in .net framework from (System.Object). Exception class is the base class for all exceptions(this sentence is from msdn).
So you are agreeing with this concept that, Exception is a Class.

just see the eg:

1. int a=10,b=20;
2. try
3. {
4. a=b/a;
5. }
6. catch(Exception Ex)
7. {
8. MessageBox.Show(Ex.Message.ToString());
9. }

Ok we can fight.

Before fighting the above mentioned eg won't rise any errors. Ok. Here my duty is something else.

If you see the line 6.
catch(Exception Ex) here I am just creating a variable of the type Exception. On line 8. I am calling a Property of the Exception class without creating the instance of Exception. Only initialization is happed in line 6.

How can I call a property of a class without creating an instance of that class ?

Any concept is there like " static property " ? Up to my level best No.

Just think you have different idea on the above mentioned question. Then what Microsoft mean by the signature of Property "Message" in Exception Class.

public virtual string Message {get;}

the above confusion is there for all properties which is available in Exception Class.


One more scenario If I create an instance of Exception class I will get all properties and method which available for the line 8.

What is this ?

Here what is the point creating instance if we want.


Next doubt is about disposing.

I think we can dispose instances of any class. What about the dispose method for an exception class ?

Just think I am creating one instance of Exception class (ins1).
How GC will destruct the inc1. When it destruct ?


Advance thanks for you



Sreejith SS Nair

GeneralRe: Funny Exception Pin
Mike Dimmick27-Apr-04 0:55
Mike Dimmick27-Apr-04 0:55 
GeneralRe: Funny Exception Pin
Colin Angus Mackay27-Apr-04 1:42
Colin Angus Mackay27-Apr-04 1:42 
GeneralRe: Funny Exception Pin
Heath Stewart27-Apr-04 3:50
protectorHeath Stewart27-Apr-04 3:50 
GeneralCalling an exported Function - Issue with different calling convention in C# Pin
Vini Deep27-Apr-04 0:21
Vini Deep27-Apr-04 0:21 
GeneralRe: Calling an exported Function - Issue with different calling convention in C# Pin
Mike Dimmick27-Apr-04 0:57
Mike Dimmick27-Apr-04 0:57 
GeneralRe: Calling an exported Function - Issue with different calling convention in C# Pin
Heath Stewart27-Apr-04 3:53
protectorHeath Stewart27-Apr-04 3:53 
GeneralRe: Calling an exported Function - Issue with different calling convention in C# Pin
Heath Stewart27-Apr-04 4:03
protectorHeath Stewart27-Apr-04 4:03 
GeneralRe: Calling an exported Function - Issue with different calling convention in C# Pin
Vini Deep27-Apr-04 23:53
Vini Deep27-Apr-04 23:53 
GeneralRe: Calling an exported Function - Issue with different calling convention in C# Pin
Heath Stewart28-Apr-04 11:22
protectorHeath Stewart28-Apr-04 11:22 
GeneralRe: Calling an exported Function - Issue with different calling convention in C# Pin
Vini Deep29-Apr-04 2:23
Vini Deep29-Apr-04 2:23 
Generalexception in system.drawing.dll Pin
Member 69108927-Apr-04 0:14
Member 69108927-Apr-04 0:14 
GeneralRe: exception in system.drawing.dll Pin
Heath Stewart27-Apr-04 4:06
protectorHeath Stewart27-Apr-04 4:06 
QuestionHow to lunch htm through C# code Pin
Alex Getman26-Apr-04 21:40
Alex Getman26-Apr-04 21:40 
AnswerRe: How to lunch htm through C# code Pin
Kannan Kalyanaraman26-Apr-04 22:50
Kannan Kalyanaraman26-Apr-04 22:50 
AnswerRe: How to lunch htm through C# code Pin
Mike Dimmick26-Apr-04 23:34
Mike Dimmick26-Apr-04 23:34 
GeneralRe: How to lunch htm through C# code Pin
Alex Getman27-Apr-04 0:47
Alex Getman27-Apr-04 0:47 
GeneralRe: How to lunch htm through C# code Pin
Heath Stewart27-Apr-04 4:11
protectorHeath Stewart27-Apr-04 4:11 

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.