Skip to content

Conversation

evanlin96069
Copy link

No description provided.

try
{
bool any = false;
foreach (SvcServerInfo info in GetServerInfo(infoObj.CurrentDemo))
Copy link
Owner

Choose a reason for hiding this comment

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

Instead of creating GetServerInfo(...), you should be able to do infoObj.CurrentDemo.FilterForMessage<SvcServerInfo>()

select (SvcServerInfo)message;
}

public static void WriteServerInfo(SvcServerInfo info, TextWriter tw, bool server_count_only = false)
Copy link
Owner

Choose a reason for hiding this comment

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

If the arg to the option is a flag, then I think you should change bool server_count_only to InfoFlags flags.

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