|
Convert Field to Property |
Top Previous Next |
|
The Convert Field to Property feature allows you to easily convert a field of a class such as: [C#]
public int Count; [VB.NET]
Public Count As Integer into a property such as: [C#]
private int m_iCount;
public int Count { get { return m_iCount; } set { m_iCount = value; } } [VB.NET]
Private m_iCount As Integer
Public Property Count() As Integer
Get Return m_iCount End Get
Set(ByVal Value As Integer) m_iCount = Value End Set
End Property Once you have put the cursor on the line with the field declaration, MZ-Tools offers the following ways to convert it to a property:
Then, the line under the cursor will be parsed and the proper values will be filled in the New Procedure Assistant dialog. When you click the Add button, the field declaration is converted to a property. Remarks:
See Also: |