Click here to Skip to main content
15,904,287 members
Home / Discussions / C#
   

C#

 
QuestionTo Create Property or Method For another indexer property i write??? Pin
thrashead20-Feb-09 21:45
thrashead20-Feb-09 21:45 
QuestionUnsafe Code + GetEnumerator() [modified] Pin
grzesio191220-Feb-09 21:24
grzesio191220-Feb-09 21:24 
Questionwindoes live id / hotmail authentication in c# windows application Pin
techismart20-Feb-09 19:22
techismart20-Feb-09 19:22 
AnswerRe: windoes live id / hotmail authentication in c# windows application Pin
Eslam Afifi21-Feb-09 4:28
Eslam Afifi21-Feb-09 4:28 
QuestionRTF format !!! Pin
Mohammad Dayyan20-Feb-09 18:03
Mohammad Dayyan20-Feb-09 18:03 
Questioncommon language runtime error Pin
ashkan002120-Feb-09 17:58
ashkan002120-Feb-09 17:58 
AnswerRe: common language runtime error Pin
Xmen Real 20-Feb-09 18:00
professional Xmen Real 20-Feb-09 18:00 
Questionuse one serialport Rx, RTS and CTS at the same time causing conflict!? Pin
little_cOder20-Feb-09 13:41
little_cOder20-Feb-09 13:41 
QuestionC# Replicating SQL Server Scheduler Pin
MasterEvilAce20-Feb-09 12:32
MasterEvilAce20-Feb-09 12:32 
QuestionHow to remove the seconds from DatetimePicker ???? Pin
Yanshof20-Feb-09 12:00
Yanshof20-Feb-09 12:00 
AnswerRe: How to remove the seconds from DatetimePicker ???? Pin
PIEBALDconsult20-Feb-09 14:03
mvePIEBALDconsult20-Feb-09 14:03 
AnswerRe: How to remove the seconds from DatetimePicker ???? Pin
Riaan Booyzen20-Feb-09 17:50
Riaan Booyzen20-Feb-09 17:50 
GeneralRe: How to remove the seconds from DatetimePicker ???? Pin
Yanshof20-Feb-09 23:23
Yanshof20-Feb-09 23:23 
GeneralRe: How to remove the seconds from DatetimePicker ???? Pin
arnepop23-Mar-10 4:20
arnepop23-Mar-10 4:20 
QuestionAccessing db fields through Mule Web Service from ASP.NET 3.5 in C# Pin
Cindy White20-Feb-09 6:18
Cindy White20-Feb-09 6:18 
AnswerRe: Accessing db fields through Mule Web Service from ASP.NET 3.5 in C# Pin
vaghelabhavesh20-Feb-09 6:22
vaghelabhavesh20-Feb-09 6:22 
GeneralRe: Accessing db fields through Mule Web Service from ASP.NET 3.5 in C# Pin
Cindy White20-Feb-09 6:27
Cindy White20-Feb-09 6:27 
QuestionCan we use the Queue Class for structs? Pin
Bruce Coward20-Feb-09 5:22
Bruce Coward20-Feb-09 5:22 
AnswerRe: Can we use the Queue Class for structs? [modified] Pin
harold aptroot20-Feb-09 6:49
harold aptroot20-Feb-09 6:49 
AnswerRe: Can we use the Queue Class for structs? Pin
Guffa20-Feb-09 9:58
Guffa20-Feb-09 9:58 
Yes, you can put struct values in a queue, but you probably should not use a struct at all in this case. A struct in .NET is a different concept from a struct in C. In .NET a struct is always a value type, while in C the struct is just a definition of the data and if it's a value type or reference type depends on how you use it.

Use a class like this:
public class AddressMessage {

   public long ParameterGroupNumber { get; private set; }
   public byte ParameterGroupNumberSpecific { get; private set; }
   public byte[] RecievedData { get; private set; }

   public AddressMessage(long number, byte specific, byte[] data) {
      ParameterGroupNumber = number;
      ParameterGroupNumberSpecific = specific;
      RecievedData = data;
   }

}

C# doesn't use header files at all, and class files are not compiled separately so you don't need header files to share definitions. As long as the class is in the same application, you can reach it by simply specifying the namespace where it is.

Despite everything, the person most likely to be fooling you next is yourself.

modified on Friday, February 20, 2009 4:20 PM

GeneralRe: Can we use the Queue Class for structs? Pin
Bruce Coward21-Feb-09 20:55
Bruce Coward21-Feb-09 20:55 
AnswerRe: Can we use the Queue Class for structs? Pin
Guffa25-Feb-09 23:41
Guffa25-Feb-09 23:41 
AnswerRe: Can we use the Queue Class for structs? Pin
PIEBALDconsult20-Feb-09 14:06
mvePIEBALDconsult20-Feb-09 14:06 
AnswerRe: Can we use the Queue Class for structs? Pin
Luc Pattyn20-Feb-09 14:23
sitebuilderLuc Pattyn20-Feb-09 14:23 
QuestionHow can i embed database in my setup file Pin
praveenvkumarv20-Feb-09 4:39
praveenvkumarv20-Feb-09 4:39 

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.