Table of Contents

Method WeightOf

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

WeightOf(string)

Gets the weight of a rule in the total score: 1 unless the standard says otherwise.

public double WeightOf(string rule)

Parameters

rule string

The id of the rule.

Returns

double

The weight, nought or more.

Exceptions

ArgumentException

Thrown when there is no rule of the id.