Adds two
Length values and returns the result in the unit of the first length.
'Declaration
Public Shared Function Add( _
ByVal As Length, _
ByVal As Length _
) As Length
Parameters
- unit1
- A first Length value.
- unit2
- A second Length value.
Return Value
A new
Length value representing the sum of the two lengths.
var length1 = new Length("1in");
var length2 = new Length("2in");
var result = Length.Add(length1, length2); // 3in