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
-
objectTsImport
- Implements
Constructors
TsImport(TsModule, string)
Creates a new import.
public TsImport(TsModule module, string name)
Parameters
Properties
Module
The module to import from.
public TsModule Module { get; }
Property Value
Name
The name to import.
public string Name { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(TsImport?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TsImport? other)
Parameters
otherTsImportAn object to compare with this object.
Returns
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.