Change-Id: I5da1fe6d4a8160dee2cd49cd6d7327f1419af91d
/// </summary>
public override int GetHashCode()
{
/// </summary>
public override int GetHashCode()
{
+ if (_typeName == null) return 0;
return _typeName.GetHashCode();
}
return _typeName.GetHashCode();
}
/// </summary>
public override bool Equals(object obj)
{
/// </summary>
public override bool Equals(object obj)
{
- return _typeName.Equals(obj);
- }
-
- /// <summary>
- /// Determines whether this instance and a specified object.
- /// </summary>
- public bool Equals(EventType obj)
- {
- if (obj == null)
- {
- return false;
- }
- return _typeName.Equals(obj._typeName);
+ EventType other = obj as EventType;
+ return other != null && other._typeName == this._typeName;
/// <summary>
/// The backend instance.
/// </summary>
/// <summary>
/// The backend instance.
/// </summary>
- protected ICoreBackend Backend { get; private set; }
+ protected ICoreBackend Backend { get { return _backend; } }
/// <summary>
/// Runs the application's main loop.
/// <summary>
/// Runs the application's main loop.