Table of Contents

Class TsImport

Namespace
TypedRest.CodeGeneration.TypeScript.Model
Assembly
TypedRest.CodeGeneration.TypeScript.dll

A single name imported from a TsModule.

public sealed class TsImport : IEquatable<TsImport>
Inheritance
object
TsImport
Implements

Constructors

TsImport(TsModule, string)

Creates a new import.

public TsImport(TsModule module, string name)

Parameters

module TsModule

The module to import from.

name string

The name to import.

Properties

Module

The module to import from.

public TsModule Module { get; }

Property Value

TsModule

Name

The name to import.

public string Name { get; }

Property Value

string

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(TsImport?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TsImport? other)

Parameters

other TsImport

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.