C# OperatingSystem Clone
Description
OperatingSystem Clone
creates an OperatingSystem object
that is identical to this instance.
Syntax
OperatingSystem.Clone
has the following syntax.
public Object Clone()
Returns
OperatingSystem.Clone
method returns An OperatingSystem object that is a copy of this instance.
Example
The following code example illustrates the use of the Clone method to make a copy of an OperatingSystem object.
// w w w . j a v a2 s.c om
using System;
class CloneCompareDemo
{
static void Main( )
{
Version verMMBVer = new Version( 5, 6, 7, 8 );
OperatingSystem opCreate1 = new OperatingSystem( PlatformID.Win32NT, verMMBVer );
OperatingSystem opClone = (OperatingSystem)opCreate1.Clone( );
Console.WriteLine(opCreate1.Equals( opClone ) );
}
}
The code above generates the following result.