Hello ,

can any one help me convert that property to vb .net

Code:
public override int Capacity 
{
	get 
	{ 
		lock (_root);
		return _collection.Capacity; 
	}
	set
	{
		lock (_root);
		_collection.Capacity = value;
	}
}
the proble is , i don't know how i change the lock

VB Code:
  1. Public Overrides Property Capacity As Integer
  2.     Get
  3.             [COLOR=DarkRed]'lock (_root);[/COLOR]
  4.             Return _collection.Capacity
  5.         End Get
  6.         Set
  7.             [COLOR=DarkRed]'lock (_root);[/COLOR]
  8.             _collection.Capacity = value
  9.         End Set
  10. End Property

thanks in advance
geobest