© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3mo ago•
29 replies
hutonahill

✅ Value doubles when assigned to a variable

public IDeckStorage BuildDeckStorage(
        ISet<ICardStorage> main,
        ISet<ICardStorage> discard, ISet<ICardStorage> active
    ) {
        
        DeckStorage output =  new DeckStorage {
            Main = main,
            Discard = discard,
            Active = active
        };
        return output;
    }
public IDeckStorage BuildDeckStorage(
        ISet<ICardStorage> main,
        ISet<ICardStorage> discard, ISet<ICardStorage> active
    ) {
        
        DeckStorage output =  new DeckStorage {
            Main = main,
            Discard = discard,
            Active = active
        };
        return output;
    }


a
ISet<ICardStorage>
ISet<ICardStorage>
is basically a dictionary, but compatible with SQLite and EFCore. ICardStorage is a card type and a count of the number of cards. cards.

continueing below:
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

Similar Threads

✅ cant assign a value to a variable
C#CC# / help
2y ago