Class LengthOrAuto
LengthOrAuto class
Rappresenta un contenitore per la lunghezza di archiviazione o le unità ‘auto’..
public class LengthOrAuto : Unit
Costruttori
| Nome | Descrizione |
|---|
| LengthOrAuto() | Inizializza una nuova istanza diLengthOrAuto class e imposta lo stato su ‘auto’. |
| LengthOrAuto(Length) | Inizializza una nuova istanza diLengthOrAutoclass e imposta lo stato su ’lenght’. |
Proprietà
| Nome | Descrizione |
|---|
| IsAuto { get; } | Ottiene un valore che indica se questa istanza è in ‘auto’. |
| Length { get; set; } | Ottiene o imposta la lunghezza. |
| UnitType { get; } | Ottiene il tipo di unità diUnit . |
Metodi
| Nome | Descrizione |
|---|
| override Equals(object) | Determina se specificatoObject , è uguale a questa istanza. |
| override Equals(Unit) | Determina se specificatoUnit , è uguale a questa istanza. |
| override GetHashCode() | Restituisce un codice hash per questa istanza. |
| SetAuto() | Reimposta il contenitore sullo stato ‘auto’. |
| override ToString() | Restituisce aString che rappresenta questa istanza. |
| implicit operator | Esegue una conversione implicita daLength ALengthOrAuto . |
Guarda anche