473,473 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

reg Object data type

Hi,
I've need clariifcation regarding the Obejct data type.
Is this object a value type or reference type?....
can you please some articles which give explaination as to why
it's treated as value type\reference type???

Thanks
Jun 27 '08 #1
4 1230
On May 28, 7:10 am, AVL <A...@discussions.microsoft.comwrote:
Hi,
I've need clariifcation regarding the Obejct data type.
Is this object a value type or reference type?....
can you please some articles which give explaination as to why
it's treated as value type\reference type???

Thanks
Object is a reference type as stated in the language specification
(http://www.google.dk/url?sa=t&ct=res...url=http%3A%2F
%2Fdownload.microsoft.com%2Fdownload%2F3%2F8%2F8%2 F388e7205-bc10-4226-
b2a8-75351c669b09%2FCSharp%2520Language
%2520Specification.doc&ei=I_Q8SKjhJ5CE1wassu3QDQ&u sg=AFQjCNH48AGfZpjFXXCFdvGQ1yt9Mk_-
Iw&sig2=jAv7u0rD6lhN2g2JddAliA).

Brian
Jun 27 '08 #2
Object is an reference type. It's the base class for all the reference
types. The reason why its a reference type is that Microsoft thought
that way :)

AVL wrote:
Hi,
I've need clariifcation regarding the Obejct data type.
Is this object a value type or reference type?....
can you please some articles which give explaination as to why
it's treated as value type\reference type???

Thanks
Jun 27 '08 #3
"AVL" <AV*@discussions.microsoft.comwrote in message
news:2F**********************************@microsof t.com...
I've need clariifcation regarding the Obejct data type.
Is this object a value type or reference type?....
can you please some articles which give explaination as to why
it's treated as value type\reference type???
Object is a Reference type. When you assign a Value type to an Object it
suffers an operation that is called "boxing", where the value is moved into
a "box" that is assigned a reference. The opposite operation is "unboxing".
You will find plenty of information if you do a search for "boxing" and
"unboxing".

Jun 27 '08 #4
On Tue, 27 May 2008 22:59:44 -0700, Ashutosh <sm*******@nospam.nospam>
wrote:
Object is an reference type. It's the base class for all the reference
types.
It's also the base class for all the value types. It's funny like that.
:)

But yes, it's a reference type.
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Krzysztof Stachlewski | last post by:
I tried to run the following piece of code: Python 2.3.4 (#53, May 25 2004, 21:17:02) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> o = object() >>> o.a...
18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
4
by: Tom | last post by:
I want to open a recordset object on an .asp page. When I open the recordset I would like to use a stored procedure that expects a parameter to be passed for the stored procedure. I will then use...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
16
by: sneill | last post by:
How is it possible to take the value of a variable (in this case, MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name? In the following example I want 'oIcon' object to have...
100
by: E. Robert Tisdale | last post by:
What is an object? Where did this term come from? Does it have any relation to the objects in "object oriented programming"?
0
by: Roman | last post by:
I'm trying to create the form which would allow data entry to the Client table, as well as modification and deletion of existing data rows. For some reason the DataGrid part of functionality stops...
7
by: Martin Robins | last post by:
I am currently looking to be able to read information from Active Directory into a data warehouse using a C# solution. I have been able to access the active directory, and I have been able to return...
7
by: Arpan | last post by:
The .NET Framework 2.0 documentation states that An Object variable always holds a pointer to the data, never the data itself. Now w.r.t. the following ASP.NET code snippet, can someone please...
23
by: tonytech08 | last post by:
What I like about the C++ object model: that the data portion of the class IS the object (dereferencing an object gets you the data of a POD object). What I don't like about the C++ object...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.