Skip to content

Rename "klass" parameters into "class" #109

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/MulticastService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ void checkResponse(object s, MessageEventArgs e)
/// <param name="name">
/// A domain name that should end with ".local", e.g. "myservice.local".
/// </param>
/// <param name="klass">
/// <param name="class">
/// The class, defaults to <see cref="DnsClass.IN"/>.
/// </param>
/// <param name="type">
Expand All @@ -394,7 +394,7 @@ void checkResponse(object s, MessageEventArgs e)
/// <exception cref="InvalidOperationException">
/// When the service has not started.
/// </exception>
public void SendQuery(DomainName name, DnsClass klass = DnsClass.IN, DnsType type = DnsType.ANY)
public void SendQuery(DomainName name, DnsClass @class = DnsClass.IN, DnsType type = DnsType.ANY)
{
var msg = new Message
{
Expand All @@ -404,7 +404,7 @@ public void SendQuery(DomainName name, DnsClass klass = DnsClass.IN, DnsType typ
msg.Questions.Add(new Question
{
Name = name,
Class = klass,
Class = @class,
Type = type
});

Expand All @@ -417,7 +417,7 @@ public void SendQuery(DomainName name, DnsClass klass = DnsClass.IN, DnsType typ
/// <param name="name">
/// A domain name that should end with ".local", e.g. "myservice.local".
/// </param>
/// <param name="klass">
/// <param name="class">
/// The class, defaults to <see cref="DnsClass.IN"/>.
/// </param>
/// <param name="type">
Expand All @@ -431,7 +431,7 @@ public void SendQuery(DomainName name, DnsClass klass = DnsClass.IN, DnsType typ
/// <exception cref="InvalidOperationException">
/// When the service has not started.
/// </exception>
public void SendUnicastQuery(DomainName name, DnsClass klass = DnsClass.IN, DnsType type = DnsType.ANY)
public void SendUnicastQuery(DomainName name, DnsClass @class = DnsClass.IN, DnsType type = DnsType.ANY)
{
var msg = new Message
{
Expand All @@ -441,7 +441,7 @@ public void SendUnicastQuery(DomainName name, DnsClass klass = DnsClass.IN, DnsT
msg.Questions.Add(new Question
{
Name = name,
Class = (DnsClass) ((ushort)klass | 0x8000),
Class = (DnsClass) ((ushort)class | 0x8000),
Type = type
});

Expand Down