Jump to content

c# class problem

Go to solution Solved by vorticalbox,

Solved missed a bit of code later on my bad.

        public class court1 : IEquatable<court1>        {            public string time { get; set; }            public string booked { get; set; }            public string client { get; set; }                    }

Giving me the error 

 

Error 1 'BookingXML.Program.court1' does not implement interface member 'System.IEquatable<BookingXML.Program.court1>.Equals(BookingXML.Program.court1)' d:\aaron\documents\visual studio 2013\Projects\BookingXML\BookingXML\Program.cs 12 22 BookingXML

 

 

I'm trying to use this https://msdn.microsoft.com/en-us/library/bhkz42b3%28v=vs.110%29.aspx to create a list of bookings. 

 

even the code from the site gives me the same error.

 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/373364-c-class-problem/
Share on other sites

Link to post
Share on other sites

Solved missed a bit of code later on my bad.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/373364-c-class-problem/#findComment-5050883
Share on other sites

Link to post
Share on other sites

Just out of curiosity, but what does this program do?

For college i need to create a system to take bookings for a squash court. I posted before about it and it was suggested to use a DB/text files however i'm getting pushed for time and using a list just seemed like a quicker option.

 

though i am open to suggestions :)

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/373364-c-class-problem/#findComment-5054018
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×