# Interface IMappingUtils

Namespace
  adas_core.Domain.Utils.Interfaces

Assembly
  adas-core.Domain.dll

    public interface IMappingUtils

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Methods

### GetComplexityValue(string, double?)

Retrieves the complexity value associated with the specified name, optionally applying a weight.

    int GetComplexityValue(string name, double? peso = null)

#### Parameters

`name` string

  The name used to look up the complexity value.

`peso` double?

  An optional weight value to apply to the complexity calculation.

#### Returns

int

  The complexity value as an integer.

### SearchByCode(object, string)

Searches for an entity by its code within the specified category and returns its type, name, and group.

    (string type, string name, string group)? SearchByCode(object code, string category)

#### Parameters

`code` object

  The code used to look up the entity.

`category` string

  The category used to filter the search.

#### Returns

(string type, string name, string group)?

  A nullable tuple containing the type, name, and group of the found entity, or `null` if no match is found.