comment a structure

  • Thread starter Thread starter Bruce Wood
  • Start date Start date
B

Bruce Wood

/// <summary>This is what struct_name is for...</summary>
public struct struct_name{
/// <summary>This is what 'len' means.</summary>
public int len;
/// <summary>This is what 'tmp' means.</summary>
public bool tmp;
}
 
Sharon said:
Hi all

I have this structure ,

public struct struct_name{

public int len;

public bool tmp;

}



What is the right way to comment this structure?

Every way I try I get this warning:



Missing xml comment for publicly visible type or member ...

Put an XML comment before the struct itself and each of the members:


/// <summary>
/// ...
/// </summary>
public struct struct_name{

/// <summary>
/// ...
/// </summary>
public int len;

/// <summary>
/// ...
/// </summary>
public bool tmp;
}
 
Hi all

I have this structure ,

public struct struct_name{

public int len;

public bool tmp;

}



What is the right way to comment this structure?

Every way I try I get this warning:



Missing xml comment for publicly visible type or member ...



Thank you

Sharon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top