Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple Inherited Topic for FubuMVC.ServerSentEvents
public class SimpleTopic : Topic
{
public Guid SomeId { get; set; }
public override bool Equals(object obj)
{
return Equals(obj as SimpleTopic );
}
public bool Equals(SimpleTopic other)
{
if (ReferenceEquals(null, other)) return false;
return ReferenceEquals(this, other) || other.SomeId.Equals(SomeId);
}
public override int GetHashCode()
{
return SomeId.GetHashCode();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment