Skip to content

Warning CA1065 #8

Description

@f1fan44

As a general comment, warnings during compile time are an obstacle to development in a professional environment. There are five of these warnings in the UnitClassLibrary code.

The warning is:
"property.get()' creates an exception of type 'NotImplementedException', an exception type that should not be raised in a property. If this exception instance might be raised, use a different exception type, convert this property into a method, or change this property's logic so that it no longer raises an exception."

Suggest using InvalidOperationException() instead. Visual Studio does not issue a warning for throwing this exception from a getter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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