title: Convert these lines from C# to VB.Net?
body: <p>I'm wondering how this can be converted to VB.NET.</p>
  
  <pre><code>private void RaiseStreamVolumeNotification()
      {
          if (StreamVolume != null)
          {
              StreamVolume(this, new StreamVolumeEventArgs() { MaxSampleValues = (float[])maxSamples.Clone() });
          }
  
      }
  
  public class StreamVolumeEventArgs : EventArgs
  {
      public float[] MaxSampleValues { get; set; }
  }
  </code></pre>
  
  <p>I'm trying to convert it using an online converter, but either it fails, or it converts it incorrectly. One converter, which I think is the best one, converts it to this:</p>
  
  <pre><code>Public Class StreamVolumeEventArgs
      Inherits EventArgs
  Private _MaxSampleValues As Single()
      Public Property MaxSampleValues() As Single()
          Get
              Return _MaxSampleValues
          End Get
          Set(ByVal value As Single())
              _MaxSampleValues = value
          End Set
      End Property
  End Class
  </code></pre>