|
|
swjam wrote: therefore objects?
Structure is a value type. Hence, int(System.Int32) is a value type being a structure. And so, it is passed by value.
|
|
|
|
|
thanks but that's not really the point i'm after.
----------------------------------------------------------
this is a sig++
|
|
|
|
|
i thought u were confused about primitive data type (like int) being passed as an object.
|
|
|
|
|
Well, then what are you asking?
|
|
|
|
|
if primitives are objects (because everything are) then they should be passed by reference. well i'm after the contradiction, i know for a fact that they are passed by value. (i think Christian Graus' answered it).
----------------------------------------------------------
this is a sig++
|
|
|
|
|
Yes, everything boils down to an object, but remember those primative types (Int32, Int16, etc) actually inherit from ValueType which itself inherits from Object .
The point here I think you're trying to grasp is that the runtime treats things that inherit from ValueType different from things that don't
|
|
|
|
|
If it inherits from System.Object it is an object.
The enlightened answer to why this doesn't contradict anything is buried in Computer Science course work. But if I recall correctly a short answer would be the value of the pointers to objects are passed and the compiler knows based on the type to dereference the pointer to yield the object data from the heap. If you could directly alter the stack in C# you would be able to change the value pushed on the stack for the object without affecting the referenced in the calling code because it would just be a value reference.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego.
|
|
|
|
|
hi,
I am having 3-4 records in my database. I written code to display records from the database to datagridview. I use cellclick event for editing the records.
Now datagridview has by default sorting. But Now when ever I click on the column header it will display error. Sorting is not happening becos of the cellclick event.
What can I do?
Thanks
sjs
|
|
|
|
|
Could you write here what error you are getting while clicking.
|
|
|
|
|
i installed a windows service developed in xp
when i run that service
I receive a popup stating Interactive Services Dialog Detection
A program can't display a message on your screen - the program may need
information or permission to complete a task.
how to over come this? please help me out
thanks in advance..
arun
|
|
|
|
|
You're trying to display a message and the user the service runs under, can't do that. Vista is just telling you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
is there any method to avoid this message by giving some permissions or something else...
thanks in advance
arun
|
|
|
|
|
Don't show message boxes in your web service.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i m using windows service
i m not showing any message box
i m just loading an exe
|
|
|
|
|
Don't do that either. You can't circumvent the windows UAC, there is a reason for that.
|
|
|
|
|
From which link i can get MONO IDE.
krishna
|
|
|
|
|
www.google.com
Mono is a framework tho, it's not an IDE, you'll have to find an IDE that supports it ( I am sure there is one )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
monodevelop.com?
I are troll
|
|
|
|
|
|
anupmadathil wrote: ts verry urgent
Funny, it's not urgent to me at all.
anupmadathil wrote: if anyone know the code plz mail me on anupmadathil@gmail.com.
You're not too bright, are you ?
1 - advertising your email is a good way to get spam
2 - if you registered on CP with this email, you'd get email replies when people reply
3 - why should we email you if you're not interested enough in this community to watch for replies here
4 - no-one is going to mail you code
I just checked, and google would love to help you download sample code to do this. Why didn't you try to find your own solution before asking us to do it for you ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you for your reply.
I am not so bright,Thats why i m contacting a bright man like you.
I am only a beginer in C#.Net. I search Google to get my requirement,
but i didnt get good output... if you know any links or anything related to this plz help me..
Regards
AnupMadathil
|
|
|
|
|
anupmadathil wrote: I am only a beginer in C#.Net
OK - then choose an easier task. If this is homework, talk to your teacher. If this is paid work then you are a disgrace.,
anupmadathil wrote: I search Google to get my requirement,
I found several examples of source code. If you could not understand them, you won't understand anything you get here.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I love the crappy attempt to boost your ego in attempt to get code.
"That's why I contact a bright man like you", is that little compliment supposed to get him code or something?
|
|
|
|
|
Welcome in the CP's Memorable Quotes page, Christian [^].
BTW the C# forum is a treasure hous of memorable quotes.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|