Hi, I'm wondering how this can be converted to VB.NET.
private void RaiseStreamVolumeNotification()
{
if (StreamVolume != null)
{
StreamVolume(this, new StreamVolumeEventArgs() { MaxSampleValues = (float[])maxSamples.Clone() });
}
}
public class StreamVolumeEventArgs : EventArgs
{
public float[] MaxSampleValues { get; set; }
}
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:
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