Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
AnswerRe: schedule a .NET web service Pin
Colin Angus Mackay29-Oct-07 14:13
Colin Angus Mackay29-Oct-07 14:13 
QuestionHow do I run class constructor without calling it's method's C# ? [modified] Pin
Dima.HEMEHT29-Oct-07 12:53
Dima.HEMEHT29-Oct-07 12:53 
AnswerRe: How do I run class constructor without calling it's method's C# ? Pin
Colin Angus Mackay29-Oct-07 13:00
Colin Angus Mackay29-Oct-07 13:00 
AnswerRe: How do I run class constructor without calling it's method's C# ? Pin
Colin Angus Mackay29-Oct-07 13:04
Colin Angus Mackay29-Oct-07 13:04 
GeneralRe: How do I run class constructor without calling it's method's C# ? Pin
Guffa29-Oct-07 14:09
Guffa29-Oct-07 14:09 
GeneralRe: How do I run class constructor without calling it's method's C# ? Pin
Colin Angus Mackay29-Oct-07 14:12
Colin Angus Mackay29-Oct-07 14:12 
GeneralRe: How do I run class constructor without calling it's method's C# ? Pin
Dima.HEMEHT29-Oct-07 18:52
Dima.HEMEHT29-Oct-07 18:52 
AnswerRe: How do I run class constructor without calling it's method's C# ? Pin
Guffa29-Oct-07 22:10
Guffa29-Oct-07 22:10 
Dima.HEMEHT wrote:
I want to make abstract class, which will register it self in any collection.
But because Just In Time feature .Net runs constructor only when I reference to class.


That has nothing to do with the JIT compiler. The C# compiler compiles into IL code, and the purpose of the JIT compiler is to create the native machine code when the application is executed.

It's defined in the language when the values for the static members are created. It's only specified that the static constructor (which will create the object for the _instance variable) is executed before any members of the class is used. If your class is never used, the static constructor doesn't have to be executed at all.

Dima.HEMEHT wrote:
cause JAVA doesn't have JIT


Yes, it does.

---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams

GeneralRe: How do I run class constructor without calling it's method's C# ? Pin
Dima.HEMEHT30-Oct-07 1:13
Dima.HEMEHT30-Oct-07 1:13 
AnswerRe: How do I run class constructor without calling it's method's C# ? Pin
Guffa30-Oct-07 4:20
Guffa30-Oct-07 4:20 
GeneralRe: How do I run class constructor without calling it's method's C# ? Pin
Dima.HEMEHT31-Oct-07 5:21
Dima.HEMEHT31-Oct-07 5:21 
QuestionDateTime Pin
mihksoft29-Oct-07 12:50
mihksoft29-Oct-07 12:50 
AnswerRe: DateTime Pin
Colin Angus Mackay29-Oct-07 12:55
Colin Angus Mackay29-Oct-07 12:55 
GeneralRe: DateTime Pin
mihksoft29-Oct-07 13:52
mihksoft29-Oct-07 13:52 
QuestionConvert from Image (bitmap -> jpeg) to byte[] and back [modified] Pin
szolDat29-Oct-07 12:44
szolDat29-Oct-07 12:44 
AnswerRe: Convert from Image (bitmap -> jpeg) to byte[] and back Pin
Muhammad Shahid Farooq29-Oct-07 14:50
professionalMuhammad Shahid Farooq29-Oct-07 14:50 
AnswerRe: Convert from Image (bitmap -> jpeg) to byte[] and back [modified] Pin
szolDat29-Oct-07 23:22
szolDat29-Oct-07 23:22 
Questiondebugging C# dll Pin
pnpfriend29-Oct-07 12:06
pnpfriend29-Oct-07 12:06 
AnswerRe: debugging C# dll Pin
Malcolm Smart29-Oct-07 22:23
Malcolm Smart29-Oct-07 22:23 
GeneralRe: debugging C# dll Pin
pnpfriend30-Oct-07 6:13
pnpfriend30-Oct-07 6:13 
QuestionLighten a color Pin
Mike Hankey29-Oct-07 12:03
mveMike Hankey29-Oct-07 12:03 
AnswerRe: Lighten a color Pin
Anthony Mushrow29-Oct-07 12:16
professionalAnthony Mushrow29-Oct-07 12:16 
GeneralRe: Lighten a color Pin
Mike Hankey29-Oct-07 13:30
mveMike Hankey29-Oct-07 13:30 
QuestionCustomized date formating Pin
Glen Harvy29-Oct-07 11:33
Glen Harvy29-Oct-07 11:33 
AnswerRe: Customized date formating Pin
Colin Angus Mackay29-Oct-07 12:53
Colin Angus Mackay29-Oct-07 12:53 

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.