Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nullable reference type annotations to DynamicProxy's public API #668

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

stakx
Copy link
Member

@stakx stakx commented Sep 14, 2023

No description provided.

src/Castle.Core/DynamicProxy/ProxyUtil.cs Show resolved Hide resolved
// See the License for the specific language governing permissions and
// limitations under the License.

namespace System.Diagnostics.CodeAnalysis
Copy link
Member Author

@stakx stakx Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a better directory to put this polyfill attribute file under than the root src/Castle.Core/? (I put it there because it could in theory be used across the whole library, not just for DynamicProxy.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used to stick polyfills for .NET Framework while working with the early .NET Core versions into a Compatibility directory. Or you could literally call it Polyfills if you want. Probably best to keep out of the root like you suggested.

@stakx stakx changed the title Add nullable reference type annotations to public API Add nullable reference type annotations to DynamicProxy's public API Sep 14, 2023
@stakx stakx force-pushed the enhancement/nullable-reference-type-annotations branch from 3e5cfd5 to 781960a Compare September 14, 2023 19:14
@stakx stakx force-pushed the enhancement/nullable-reference-type-annotations branch from 781960a to a58f704 Compare September 15, 2023 08:01
@stakx stakx force-pushed the enhancement/nullable-reference-type-annotations branch from a58f704 to 30bafc9 Compare September 15, 2023 08:47
{
bool IEqualityComparer<object>.Equals(object x, object y)
new public bool Equals(object? x, object? y)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need the new keyword?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants