Show / Hide Table of Contents

Interface ICloneable

A template for a parameter that can be cloned and copied.

Namespace: SpiceSharp
Assembly: SpiceSharp.dll
Syntax
public interface ICloneable
Remarks

This class can be used to ensure that parameter sets are cloned correctly. This is to avoid issues when running multiple simulations in parallel where shared resources may be undesirable.

Methods

Clone()

Clones the instance.

Declaration
ICloneable Clone()
Returns
Type Description
ICloneable

The cloned instance.

CopyFrom(ICloneable)

Copies the contents of one interface to this one.

Declaration
void CopyFrom(ICloneable source)
Parameters
Type Name Description
ICloneable source

The source parameter.

Exceptions
Type Condition
System.ArgumentNullException

Thrown if source is null.

System.ArgumentException

Thrown if source does not have the same type.

Extension Methods

Utility.ThrowIfNull<T>(T, String)
Back to top Generated by DocFX