Files
Dec2017-Script-Dump/UnityEngine/PropertyName.cs
T
2026-06-04 11:42:34 +02:00

80 lines
2.0 KiB
C#

using System;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x0200045B RID: 1115
[UsedByNativeCode]
public struct PropertyName
{
// Token: 0x060038C9 RID: 14537 RVA: 0x00061E80 File Offset: 0x00060080
public PropertyName(string name)
{
this = new PropertyName(PropertyNameUtils.PropertyNameFromString(name));
}
// Token: 0x060038CA RID: 14538 RVA: 0x00061E90 File Offset: 0x00060090
public PropertyName(PropertyName other)
{
this.id = other.id;
}
// Token: 0x060038CB RID: 14539 RVA: 0x00061EA0 File Offset: 0x000600A0
public PropertyName(int id)
{
this.id = id;
}
// Token: 0x060038CC RID: 14540 RVA: 0x00061EAC File Offset: 0x000600AC
public static bool IsNullOrEmpty(PropertyName prop)
{
return prop.id == 0;
}
// Token: 0x060038CD RID: 14541 RVA: 0x00061ECC File Offset: 0x000600CC
public static bool operator ==(PropertyName lhs, PropertyName rhs)
{
return lhs.id == rhs.id;
}
// Token: 0x060038CE RID: 14542 RVA: 0x00061EF4 File Offset: 0x000600F4
public static bool operator !=(PropertyName lhs, PropertyName rhs)
{
return lhs.id != rhs.id;
}
// Token: 0x060038CF RID: 14543 RVA: 0x00061F1C File Offset: 0x0006011C
public override int GetHashCode()
{
return this.id;
}
// Token: 0x060038D0 RID: 14544 RVA: 0x00061F38 File Offset: 0x00060138
public override bool Equals(object other)
{
return other is PropertyName && this == (PropertyName)other;
}
// Token: 0x060038D1 RID: 14545 RVA: 0x00061F6C File Offset: 0x0006016C
public static implicit operator PropertyName(string name)
{
return new PropertyName(name);
}
// Token: 0x060038D2 RID: 14546 RVA: 0x00061F88 File Offset: 0x00060188
public static implicit operator PropertyName(int id)
{
return new PropertyName(id);
}
// Token: 0x060038D3 RID: 14547 RVA: 0x00061FA4 File Offset: 0x000601A4
public override string ToString()
{
return string.Format("Unknown:{0}", this.id);
}
// Token: 0x04001137 RID: 4407
internal int id;
}
}