© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
4 replies
sea cryptid

❔ Name "PostsService" does not exist in the current context

@using BlazorBookGroup.Data
. . .
    private PostsService postsService = new();

    protected override void OnInitialized() => posts = postsService.GetPosts();
@using BlazorBookGroup.Data
. . .
    private PostsService postsService = new();

    protected override void OnInitialized() => posts = postsService.GetPosts();
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Name does not exist in the current context
C#CC# / help
2y ago
✅ The name does not exist in current context. (forms)
C#CC# / help
4y ago
❔ The name "onclick" does not exist in the current context
C#CC# / help
4y ago
❔ The name number does not exist in the current context
C#CC# / help
4y ago