这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@colombod
Copy link
Member

@colombod colombod commented Oct 9, 2019

No description provided.

@colombod colombod requested a review from TIHan October 9, 2019 10:20
@colombod colombod mentioned this pull request Oct 9, 2019
@colombod colombod merged commit b539dab into dotnet:master Oct 9, 2019
@colombod colombod deleted the feature/stream_topics branch October 9, 2019 13:12

case nameof(Stream):
{
if (!(content is Stream stream))
Copy link
Contributor

Choose a reason for hiding this comment

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

@colombod , I am pretty sure that this type test is redundant.
After all the name came from GetType().

However, C# supports type case so probably better way to fix this is just to switch on type.

Kevin

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.

3 participants