You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base class is an abstract... the property is nullable (int?)...
I inherit the base, and use new public int to change type from nullable to a must have property (also interface that's used on class requires property to not be null).
when i execute code, i get error because the property is being detected twice in array/foreach loop and isnt considered one and the same (like most references typically are).
What are my solutions? should i remove the exception error from source, or is there another work around that's better that doesnt involve disregarding code smells?
The text was updated successfully, but these errors were encountered:
Base class is an abstract... the property is nullable (
int?
)...I inherit the base, and use
new public int
to change type from nullable to a must have property (also interface that's used on class requires property to not be null).when i execute code, i get error because the property is being detected twice in array/foreach loop and isnt considered one and the same (like most references typically are).
What are my solutions? should i remove the exception error from source, or is there another work around that's better that doesnt involve disregarding code smells?
The text was updated successfully, but these errors were encountered: