OSPlatform.Equals Método
Definição
Determina se duas instâncias OSPlatform são iguais.Determines whether two OSPlatform instances are equal.
Sobrecargas
| Equals(Object) |
Determina se a instância OSPlatform atual é igual ao objeto especificado.Determines whether the current OSPlatform instance is equal to the specified object. |
| Equals(OSPlatform) |
Determina se a instância atual e a instância OSPlatform especificada são iguais.Determines whether the current instance and the specified OSPlatform instance are equal. |
Equals(Object)
Determina se a instância OSPlatform atual é igual ao objeto especificado.Determines whether the current OSPlatform instance is equal to the specified object.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object? obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parâmetros
- obj
- Object
true se obj for uma instância OSPlatform e seu nome for igual ao objeto atual; caso contrário, false.true if obj is a OSPlatform instance and its name is the same as the current object; otherwise, false.
Retornos
true se obj for uma instância OSPlatform e seu nome for igual ao objeto atual.true if obj is a OSPlatform instance and its name is the same as the current object.
Comentários
O nome de um OSPlatform objeto é a osPlatform cadeia de caracteres passada para o Create método.The name of an OSPlatform object is the osPlatform string passed to the Create method. Os nomes dos OSPlatform objetos retornados pelas propriedades estáticas OSPlatform são "Linux", "OSX" e "Windows".The names of the OSPlatform objects returned by the static OSPlatform properties are "LINUX", "OSX", and "WINDOWS". O método usa a comparação ordinal para determinar se os nomes são os mesmos.The method uses ordinal comparison to determine whether the names are the same.
Aplica-se a
Equals(OSPlatform)
Determina se a instância atual e a instância OSPlatform especificada são iguais.Determines whether the current instance and the specified OSPlatform instance are equal.
public:
virtual bool Equals(System::Runtime::InteropServices::OSPlatform other);
public bool Equals (System.Runtime.InteropServices.OSPlatform other);
override this.Equals : System.Runtime.InteropServices.OSPlatform -> bool
Public Function Equals (other As OSPlatform) As Boolean
Parâmetros
- other
- OSPlatform
O objeto a ser comparado com a instância atual.The object to compare with the current instance.
Retornos
true se a instância atual e other forem iguais; caso contrário, false.true if the current instance and other are equal; otherwise, false.
Implementações
Comentários
Duas OSPlatform instâncias são iguais se tiverem o mesmo nome.Two OSPlatform instances are equal if they have the same name. O nome de um OSPlatform objeto é a osPlatform cadeia de caracteres passada para o Create método.The name of an OSPlatform object is the osPlatform string passed to the Create method. Os nomes dos OSPlatform objetos retornados pelas propriedades OSPlatform estáticas são "Linux", "OSX" e "Windows".The names of the OSPlatform objects returned by the static OSPlatform properties are "LINUX", "OSX", and "WINDOWS". O método usa a comparação ordinal para determinar se os nomes são os mesmos.The method uses ordinal comparison to determine whether the names are the same.