Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
Tweak UI appearance.
Commit Description:
Tweak UI appearance.
using System ;
namespace Encompass
{
/// <summary>
/// An Entity is a structure composed of a unique ID and a collection of Components.
/// An Entity may only have a single Component of any particular Type.
/// </summary>
public struct Entity : IEquatable < Entity >
{
public readonly int ID ;
internal Entity ( int id )
{
ID = id ;
}
public override bool Equals ( object obj )
{
return obj is Entity entity && Equals ( entity );
}
public bool Equals ( Entity other )
{
return other . ID == ID ;
}
public static bool operator ==( Entity one , Entity two )
{
return one . Equals ( two );
}
public static bool operator !=( Entity one , Entity two )
{
return ! one . Equals ( two );
}
public override int GetHashCode ()
{
return HashCode . Combine ( ID );
}
}
}
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings