simple C# problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

find code below, but do not understand the meaning. Code attach below.
What is the meaning of get {}, set{}?
Is get { return _AssetBrowser; } same as return _AssetBrowser;?
I guess if the object.AssetBrowser = xxx, then call set {...},
if xxx=object.AssetBrowser , then call get{...}
right? By the way, where can I find the document for this kind of style

thanks a lot!

public static ArrayList AssetBrowser
{
get { return _AssetBrowser; }
set { _AssetBrowser = value;}
}
 
HI

Get and set are used for setting the values of properties.

Set and Get calls are used to set the properties. They have lower overhead than explicit functional calls to set the properties

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top