Skip to content

Follow best practices for private fields in IDataTemplateSample #141

@EmVee381

Description

@EmVee381

Hi, I'm relatively new to C# and I'm trying to follow .NET naming best practices. I noticed that in the IDataTemplate sample, the private field is named _SelectedShape with a capital 'S'.

According to Microsoft's naming conventions, private fields should use camelCase (with a leading underscore if preferred), so it should probably be _selectedShape instead.

I don't mean to be nitpicky at all — it's just something that stood out to me while learning, and I wanted to make sure I'm understanding the conventions correctly. Could you please let me know if I'm on the right track?

Thanks for the great samples! 😊

MainWindowViewModel.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions