Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#β€’2y agoβ€’
70 replies
axo

(one of many) why are my bitwise operations not working?

hello. i am a complete beginner. like i literally picked this language up yesterday because it resembled python in quite a few ways and the basics were really easy to cover. but honestly, this is something that i really cannot wrap my head around.

Non-nullable field 'board' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable. (CS8618)
Non-nullable field 'board' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable. (CS8618)


and for my code, all i have is this:
namespace Game
{
    class TicTacToe
    {
        public int[] board; // < error here
    }
}
namespace Game
{
    class TicTacToe
    {
        public int[] board; // < error here
    }
}


can someone explain this to me? my first project with C# is gonna be tictactoe, then connect 4 and hopefully a discord bot of some sort.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

βœ… why not working
C#CC# / help
2y ago
integration testing my moqs are not working
C#CC# / help
12mo ago
❔ Why is my deserialize not working here:
C#CC# / help
3y ago
❔ βœ… Why are my MudBlazor components not rendering correctly
C#CC# / help
3y ago