We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example:
class Sample { int foo = 10; public static void PostDoc(Sample s) { s.foo = 42; } }
This will be registered in the reflection cache as a the post doc to call for the Sample type, but because it's a void function, when it's invoked it will always return null. This means that this line in the reification process will always generate null values from valid yaml: https://github.com/SpryFox/DarkConfig/blob/1e8c8fb5041467dbbcebc62d9f26ee87b84f5400/src/DarkConfig/Internal/TypeReifier.cs#LL449C30-L449C30
Sample
This should instead throw an error when attempting to register a PostDoc function that doesn't match the required signature
The text was updated successfully, but these errors were encountered:
grahamboree
No branches or pull requests
For example:
This will be registered in the reflection cache as a the post doc to call for the
Sample
type, but because it's a void function, when it's invoked it will always return null. This means that this line in the reification process will always generate null values from valid yaml: https://github.com/SpryFox/DarkConfig/blob/1e8c8fb5041467dbbcebc62d9f26ee87b84f5400/src/DarkConfig/Internal/TypeReifier.cs#LL449C30-L449C30This should instead throw an error when attempting to register a PostDoc function that doesn't match the required signature
The text was updated successfully, but these errors were encountered: