Skip to content

chore: various channel follow-ups#2796

Merged
mxschmitt merged 1 commit into
mainfrom
channel-follow-ups
Dec 11, 2023
Merged

chore: various channel follow-ups#2796
mxschmitt merged 1 commit into
mainfrom
channel-follow-ups

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

@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
}
}

internal class EvaluateArgumentGuidElement
Copy link
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
Contributor 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
@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