Click here to Skip to main content
15,924,507 members
Home / Discussions / C#
   

C#

 
AnswerDon't repost your question Pin
led mike29-Nov-07 11:39
led mike29-Nov-07 11:39 
AnswerRe: how to avoid postbacks Pin
PIEBALDconsult29-Nov-07 14:22
mvePIEBALDconsult29-Nov-07 14:22 
JokeRe: how to avoid postbacks Pin
Anthony Mushrow29-Nov-07 14:50
professionalAnthony Mushrow29-Nov-07 14:50 
GeneralRe: how to avoid postbacks Pin
ShaikhAffi29-Nov-07 23:03
ShaikhAffi29-Nov-07 23:03 
Questionwhat functions could I use to get this effect in C#???? Pin
para para29-Nov-07 11:00
para para29-Nov-07 11:00 
AnswerRe: what functions could I use to get this effect in C#???? Pin
Jim Conigliaro29-Nov-07 11:03
Jim Conigliaro29-Nov-07 11:03 
AnswerRe: what functions could I use to get this effect in C#???? Pin
pmarfleet29-Nov-07 11:07
pmarfleet29-Nov-07 11:07 
QuestionCommenting the implementation of an interface [modified] Pin
Todd Smith29-Nov-07 10:31
Todd Smith29-Nov-07 10:31 
How do you go about documenting the implementation of an interface? Do you just copy the interface comment to your implementation? Skip documenting the implementation? Create a new unique comment for the implementation?

public interface IMyInterface
{
		/// <summary>
		/// Get something from somewhere.
		/// </summary>
		/// <param name="param1">A param.</param>
		/// <returns>Returns a positive value represeting some value from an unknown place otherwise returns 0.</returns>
		int GetSomething (int param1);
}

public class MyClass : IMyInterface
{
		/// duplicate the interface comment?
 		public int GetSomething (int param1);
		{
			// TODO: implement of GetSomething
		}
}


I'm currently leaning towards reusing the interface comment and figured out how to have it auto-magically included in the implementation with the following code. NOTE: you'll need to make a post-build copy of your XML files and reference those otherwise you'll get a file in use error.
public class MyClass : IMyInterface
{
		/// <include file="Doc\MyAssembly.XML" path="//member[contains(@name,'IMyInterface.GetSomething')]/*" />
		int GetSomething (int param1);
		{
			// TODO: implement of GetSomething
		}
}







p.s. is there an easy way to paste code with special characters (< > &) so it automatically converts them to their encoded form?

-- modified at 16:36 Thursday 29th November, 2007

Todd Smith

AnswerRe: Commenting the implementation of an interface Pin
PIEBALDconsult29-Nov-07 10:50
mvePIEBALDconsult29-Nov-07 10:50 
QuestionHELP PLEASE - databindings, comboboxes and headaches.. Pin
XenReborn29-Nov-07 10:02
XenReborn29-Nov-07 10:02 
GeneralRe: How do i.... Pin
C# Beginner Nick29-Nov-07 9:43
C# Beginner Nick29-Nov-07 9:43 
GeneralRe: How do i.... Pin
Luc Pattyn29-Nov-07 11:31
sitebuilderLuc Pattyn29-Nov-07 11:31 
QuestionOverloading Keypress Pin
MarkB77729-Nov-07 9:18
MarkB77729-Nov-07 9:18 
AnswerRe: Overloading Keypress Pin
Luc Pattyn29-Nov-07 9:41
sitebuilderLuc Pattyn29-Nov-07 9:41 
Questioncollection or array Pin
kenwen29-Nov-07 8:59
kenwen29-Nov-07 8:59 
AnswerRe: collection or array Pin
led mike29-Nov-07 9:05
led mike29-Nov-07 9:05 
GeneralRe: collection or array Pin
kenwen29-Nov-07 9:16
kenwen29-Nov-07 9:16 
AnswerRe: collection or array Pin
PIEBALDconsult29-Nov-07 9:57
mvePIEBALDconsult29-Nov-07 9:57 
AnswerRe: collection or array Pin
John_Adams30-Nov-07 1:02
John_Adams30-Nov-07 1:02 
GeneralRe: collection or array Pin
kenwen4-Dec-07 1:16
kenwen4-Dec-07 1:16 
Questionor || operator on strings? Pin
h0st1le29-Nov-07 8:19
h0st1le29-Nov-07 8:19 
AnswerRe: or || operator on strings? Pin
Alaric_29-Nov-07 8:21
professionalAlaric_29-Nov-07 8:21 
GeneralRe: or || operator on strings? Pin
PIEBALDconsult29-Nov-07 8:31
mvePIEBALDconsult29-Nov-07 8:31 
GeneralRe: or || operator on strings? Pin
Alaric_29-Nov-07 8:45
professionalAlaric_29-Nov-07 8:45 
GeneralRe: or || operator on strings? Pin
h0st1le29-Nov-07 8:51
h0st1le29-Nov-07 8:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.