Returns an instance whose Text property is a concatenation of Text properties of c1 and c2.

Namespace: SampleClassLibrary
Assembly: SampleClassLibrary (in SampleClassLibrary.dll)

Public Shared Operator +( _ 
ByVal c1 As MainClass, _ 
ByVal c2 As MainClass
) As MainClass
This language is not supported or no code example is available.
public static MainClass operator +( 
MainClass c1
MainClass c2 
)
This language is not supported or no code example is available.
static member (+)( 
c1:MainClass
c2:MainClass 
)
This language is not supported or no code example is available.
public:  
static MainClass^ operator +( 
MainClass^ c1
MainClass^ c2 
)
This language is not supported or no code example is available.
JScript supports the use of overloaded operators, but not the declaration of new ones.
This language is not supported or no code example is available.

Parameters

c1
Type: MainClass

c2
Type: MainClass

Return Value

Type: MainClass
This is an example of operator overloading.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Core

Supported in: 1.0, 1.1, 2.0

.NET Standard

Supported in: 2.0

Xamarin.Android

Supported in: 7.1

Portable Class Library

Supported in: Portable Class Library