Property Procedures Offers A Few Advantages

xiaoxiao2021-03-06  67

Using Full Property Procedures Offers a Few Advantages, HoWever, Including the Following:

It enables you to perform some basic data checking and refuse invalid information. Do not take this approach too far, however, because rules are often better placed in a different location (such as at the user interface level or in a service provider method) . It enables you to use data binding with arrays or collections of this class in Windows Forms and ASP.NET Web pages, which comes in handy. It provides a better level of design-time support. Property procedure settings can be configured through the Properties Window in Visual Studio .NET; Public Variables Cannot.

转载请注明原文地址:https://www.9cbs.com/read-85232.html

New Post(0)