HelloWorld.PlaceActing.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals( object obj )
        {
            var acting = obj as PlaceActing;
              if ( acting == null )
            return false;

              if ( acting.Place != this.Place )
            return false;

              if ( acting.ActionDescriptor != this.ActionDescriptor )
            throw new InvalidOperationException();

              return true;
        }