Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How can i embed database in my setup file Pin
led mike20-Feb-09 4:55
led mike20-Feb-09 4:55 
GeneralRe: How can i embed database in my setup file Pin
praveenvkumarv20-Feb-09 5:32
praveenvkumarv20-Feb-09 5:32 
GeneralRe: How can i embed database in my setup file Pin
led mike20-Feb-09 5:50
led mike20-Feb-09 5:50 
GeneralRe: How can i embed database in my setup file Pin
praveenvkumarv20-Feb-09 17:58
praveenvkumarv20-Feb-09 17:58 
QuestionCan i print a doc or pdf file ? Pin
abbd20-Feb-09 4:35
abbd20-Feb-09 4:35 
GeneralRe: Can i print a doc or pdf file ? Pin
Kristian Sixhøj20-Feb-09 7:54
Kristian Sixhøj20-Feb-09 7:54 
AnswerRe: Can i print a doc or pdf file ? Pin
dan!sh 20-Feb-09 8:27
professional dan!sh 20-Feb-09 8:27 
GeneralRe: Can i print a doc or pdf file ? Pin
abbd20-Feb-09 10:39
abbd20-Feb-09 10:39 
QuestionRe: Can i print a doc or pdf file ? Pin
abbd20-Feb-09 22:25
abbd20-Feb-09 22:25 
AnswerRe: Can i print a doc or pdf file ? Pin
Deresen21-Feb-09 3:15
Deresen21-Feb-09 3:15 
GeneralRe: Can i print a doc or pdf file ? Pin
abbd21-Feb-09 10:32
abbd21-Feb-09 10:32 
QuestionSplitting strings Pin
kanchoette20-Feb-09 4:21
kanchoette20-Feb-09 4:21 

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.