Properties (Get And Set) Trong C#

Trust me, I have looked, but in all the reading & Internet searches I have done, either they don"t address the question, or I am too thick to understand the complicated answer. It seems lượt thích a pretty straight forward questions, but I can"t find the answer.

Bạn đang xem: Properties (get and set) trong c#

Which gets the information from the application - get or set?

I will check the liên kết you sent, because the more information I get the better, but my hope was to lớn get an answer lớn what I thought was a simple question. I have spent hours trying to find a straight forward answer, but it appears it does not exist.


Friday, February 23, 2018 7:29 PM
*

*

0
Sign in lớn vote

I appreciate your feedback, và I hate to lớn ask for help. I have done a good amount of research (both online và text books) và I have written và done code to perform the task, but that does not explain to lớn me how it is working. I can get it to lớn work fine, but it"s like driving a car - just because I know how lớn drive, doesn"t mean I can tell you how the car works.

That is in no way meant lớn seem like a smart alack response, I truly don"t. I hate, HATE asking for help, but everything I have read & researched doesn"t answer the my question: Which gets the the data from the application - get or set?

I am trying to lớn shorten my learning curve. I have spent hours trying to lớn find the answer, but have been unable to. But since I am stubborn, I will continue my search! :)
Friday, February 23, 2018 7:31 PM
*

*

0
Sign in khổng lồ vote

I am trying to lớn shorten my learning curve. I have spent hours trying khổng lồ find the answer, but have been unable to. But since I am stubborn, I will continue my search! :)

You ask this in the C# forum. C# is based on C type languages and is in fact a combination from C++, Java, VB and probably Delphi the first program language of Anders Hejlsberg the big man behind C#.

Xem thêm: Bảng Giá Điện Thoại Htc Chính Hãng Mới Nhất, Bảng Giá 9/2021

C#, VB (since version 7), C++ (managed) & Java giới thiệu currently the same things.

It is based on instanced Classes from which the base is the Object Class. A Class has members, which are Methods, Properties and Constructors.

In WPF the properties become again important, but WPF is not an origanally Microsoft made product. Originally the property was a base principle how code was set khổng lồ ILS and everything worked around it. Currently it has not much differences with a field.

Difficult is if you begin with looking lớn it from inside the (this) class. However you should seen it from outside the class.