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

chore: various channel follow-ups #2796

Merged
merged 1 commit into from
Dec 11, 2023
Merged

chore: various channel follow-ups #2796

merged 1 commit into from
Dec 11, 2023

Conversation

mxschmitt
Copy link
Member

@mxschmitt mxschmitt commented Dec 10, 2023

Gets rebased on #2795 once landed.

@mxschmitt mxschmitt force-pushed the get-rid-of-channels-final branch from 1acbd42 to 47249a0 Compare December 11, 2023 16:46
Base automatically changed from get-rid-of-channels-final to main December 11, 2023 16:59
@@ -87,3 +87,8 @@ internal static string EvaluationScript(string content, string path)
throw new ArgumentException("Either path or content property must be present");
}
}

internal class EvaluateArgumentGuidElement
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't C# style gives preference to file per class?

Copy link
Member Author

Choose a reason for hiding this comment

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

We do this already in other parts in order to keep the amount of source code files more clear.

property.SetValue(objResult, ToExpectedType(kv.Value, property.PropertyType, visited));
}
var property = Array.Find(t.GetProperties(), prop => string.Equals(prop.Name, kv.Key, StringComparison.OrdinalIgnoreCase));
property?.SetValue(objResult, ToExpectedType(kv.Value, property.PropertyType, visited));
Copy link
Member

Choose a reason for hiding this comment

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

What is the minimal .Net version that supports ?. operator, are we confident that we'll not need to build with it?

Copy link
Member Author

Choose a reason for hiding this comment

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

.NET takes care of that via the TFM, we can use any newer C# language feature how we like.

@mxschmitt mxschmitt merged commit dece69a into main Dec 11, 2023
15 checks passed
@mxschmitt mxschmitt deleted the channel-follow-ups branch December 11, 2023 20:49
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.

2 participants