-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: TDP
Message 3 in Discussion



What is managed code and 
managed data?<o:p></o:p>

Managed code is code 
that is written to target the services of the Common Language Runtime (see What 
is the Common Language Runtime?). In order to target these services, the code 
must provide a minimum level of information (metadata) to the runtime. All C#, 
Visual Basic.NET, and JScript.NET code is managed by default. Visual Studio.NET 
C++ code is not managed by default, but the compiler can produce managed code by 
specifying a command-line switch (/CLR). <o:p></o:p>
Closely related to managed code is managed data?data that is 
allocated and de-allocated by the Common Language Runtime's garbage collector. 
C#, Visual Basic, and JScript.NET data is managed by default. C# data can, 
however, be marked as unmanaged through the use of special keywords. Visual 
Studio.NET C++ data is unmanaged by default (even when using the /CLR switch), 
but when using Managed Extensions for C++, a class can be marked as managed by 
using the __gc keyword. As the name suggests, this means that the memory for 
instances of the class is managed by the garbage collector. In addition, the 
class becomes a full participating member of the .NET Framework community, with 
the benefits and restrictions that brings. An example of a benefit is proper 
interoperability with classes written in other languages (for example, a managed 
C++ class can inherit from a Visual Basic class). An example of a restriction is 
that a managed class can only inherit from one base class. 
 
Prasanth TD

>>> 
[EMAIL PROTECTED] 06/19/03 02:32PM >>>


  
  
    
    New Message on BDOTNET
  
    

what 
  exactlly is managed data ???


  
    
    
      Reply

      
        
          
          
             
            Reply to Sender   Recommend 
            Message 1 in Discussion 
            
    
      
        
          
          
            From: SenthilVel 
          
            
hi all
i have a small confusion 
              regarding managed data....
see managed code is the code which 
              makes use the CLS feature of the clr and the which undergoes 
              through the managed execution processs .In this all the features 
              of clr like cts, cls,cas, msil , jit all takes place for the 
              fullest performance/security execution of the code.

but 
              where does this managed data come in ???
is it like this "the 
              objects which are inherited from other languages apart from the 
              one you use 
and acted upon by garbage collector"?

where 
              exactlly this manages code DIFFER from MANAGED 
              DATA????

regds 
    
Senthil

View other groups in this 
  category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to