Property Setter and Getter Accessors
I see Scott talking about Using for VB in VS 2005 and thought I'd throw in another new thing (that I absolutely love and I think also works in C#, but I haven't had time to try it yet).
Private _Test As String = ""
Public Property Test() As String
Get
Return _Test
End Get
Friend Set(ByVal Value As String)
_Test = Value
End Set
End Property
So in this case, inside of my Class Library (the Assembly where my code sits), I can Read and Write to the Property (in case I happen to have any other logic in my setter) and then anytime someone tries to write to the Property outside of the Assembly, they won't be able to (it will appear to be a ReadOnly Property. This is perfect and much needed for we Class Library junkies and I am super pumped about it! :)
Sorry if this has already been talked about. I haven't been able to keep up on reading blogs much lately! :(