Skip to content

Fix Equals and GetHashCode override check for proxy generation hooks having multiple Equals methods #315

Fix Equals and GetHashCode override check for proxy generation hooks having multiple Equals methods

Fix Equals and GetHashCode override check for proxy generation hooks having multiple Equals methods #315

Triggered via pull request January 1, 2026 23:37
Status Success
Total duration 3m 5s
Artifacts

build.yml

on: pull_request
Matrix: Build and test
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
Build and test (macos-latest): src/Castle.Core/DynamicProxy/ModuleScope.cs#L168
Avoid inexact read with 'System.IO.Stream.Read(byte[], int, int)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2022)
Build and test (macos-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs#L198
'FieldAttributes.NotSerialized' is obsolete: 'Formatter-based serialization is obsolete and should not be used.' (https://aka.ms/dotnet-warnings/SYSLIB0050)
Build and test (macos-latest): src/Castle.Core/Core/Resource/ResourceException.cs#L35
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (macos-latest): src/Castle.Core/DynamicProxy/ProxyGenerator.cs#L568
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
Build and test (macos-latest): src/Castle.Core/Core/Logging/LoggerException.cs#L35
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (macos-latest): src/Castle.Core/DynamicProxy/DynamicProxyException.cs#L37
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (macos-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs#L47
'TypeAttributes.Serializable' is obsolete: 'Formatter-based serialization is obsolete and should not be used.' (https://aka.ms/dotnet-warnings/SYSLIB0050)
Build and test (macos-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IfNullExpression.cs#L28
Cannot convert null literal to non-nullable reference type.
Build and test (macos-latest): src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs#L142
Dereference of a possibly null reference.
Build and test (macos-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IfNullExpression.cs#L28
Cannot convert null literal to non-nullable reference type.
Build and test (ubuntu-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs#L198
'FieldAttributes.NotSerialized' is obsolete: 'Formatter-based serialization is obsolete and should not be used.' (https://aka.ms/dotnet-warnings/SYSLIB0050)
Build and test (ubuntu-latest): src/Castle.Core/Core/Logging/LoggerException.cs#L35
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (ubuntu-latest): src/Castle.Core/Core/Resource/ResourceException.cs#L35
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (ubuntu-latest): src/Castle.Core/DynamicProxy/DynamicProxyException.cs#L37
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (ubuntu-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IfNullExpression.cs#L28
Cannot convert null literal to non-nullable reference type.
Build and test (ubuntu-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs#L47
'TypeAttributes.Serializable' is obsolete: 'Formatter-based serialization is obsolete and should not be used.' (https://aka.ms/dotnet-warnings/SYSLIB0050)
Build and test (ubuntu-latest): src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs#L142
Dereference of a possibly null reference.
Build and test (ubuntu-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IfNullExpression.cs#L28
Cannot convert null literal to non-nullable reference type.
Build and test (ubuntu-latest): src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs#L142
Dereference of a possibly null reference.
Build and test (ubuntu-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IfNullExpression.cs#L28
Cannot convert null literal to non-nullable reference type.
Build and test (windows-latest): src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs#L142
Dereference of a possibly null reference.
Build and test (windows-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IfNullExpression.cs#L28
Cannot convert null literal to non-nullable reference type.
Build and test (windows-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs#L198
'FieldAttributes.NotSerialized' is obsolete: 'Formatter-based serialization is obsolete and should not be used.' (https://aka.ms/dotnet-warnings/SYSLIB0050)
Build and test (windows-latest): src/Castle.Core/DynamicProxy/DynamicProxyException.cs#L37
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (windows-latest): src/Castle.Core/Core/Logging/LoggerException.cs#L35
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (windows-latest): src/Castle.Core/Core/Resource/ResourceException.cs#L35
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and test (windows-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IfNullExpression.cs#L28
Cannot convert null literal to non-nullable reference type.
Build and test (windows-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/ClassEmitter.cs#L47
'TypeAttributes.Serializable' is obsolete: 'Formatter-based serialization is obsolete and should not be used.' (https://aka.ms/dotnet-warnings/SYSLIB0050)
Build and test (windows-latest): src/Castle.Core/DynamicProxy/Internal/TypeUtil.cs#L142
Dereference of a possibly null reference.
Build and test (windows-latest): src/Castle.Core/DynamicProxy/Generators/Emitters/SimpleAST/IfNullExpression.cs#L28
Cannot convert null literal to non-nullable reference type.