Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Quiz Sharp #41

Chi ha seguito la mia sessione al workshop del 2 dicembre già lo conosce. Per gli altri, qui sotto, una domandina:

Cosa producono i seguenti due pezzi di codice?

C# Visual Basic .NET
[IndexerName("P")]
public string this[int i]
{
      get
      {
            return _p[i];
      }
      set
      {
            _p[i] = value;
      }
}

<IndexerName("P")> _
Public Property Item(ByVal i As Integer) As String
 
    Get
        Return _p(i)
    End Get
 
    Set(ByVal Value As Integer)
        _p(i) = Value
    End Set
 
End Property

Print | posted on mercoledì 8 dicembre 2004 21:00 | Filed Under [ Quiz Sharp CLS ]

Powered by:
Powered By Subtext Powered By ASP.NET