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
 
Back
Top