Click here to Skip to main content
15,885,914 members
Home / Discussions / C#
   

C#

 
GeneralRe: I found some issues in coding but I don't know how to solve them. Could you give me some advices ? Pin
F-ES Sitecore27-Mar-15 4:54
professionalF-ES Sitecore27-Mar-15 4:54 
GeneralRe: I found some issues in coding but I don't know how to solve them. Could you give me some advices ? Pin
patrickjiang258027-Mar-15 5:02
patrickjiang258027-Mar-15 5:02 
SuggestionRe: I found some issues in coding but I don't know how to solve them. Could you give me some advices ? Pin
Richard Deeming27-Mar-15 2:34
mveRichard Deeming27-Mar-15 2:34 
GeneralRe: I found some issues in coding but I don't know how to solve them. Could you give me some advices ? Pin
patrickjiang258027-Mar-15 4:44
patrickjiang258027-Mar-15 4:44 
GeneralRe: I found some issues in coding but I don't know how to solve them. Could you give me some advices ? Pin
patrickjiang258027-Mar-15 4:50
patrickjiang258027-Mar-15 4:50 
GeneralRe: I found some issues in coding but I don't know how to solve them. Could you give me some advices ? Pin
Richard Deeming27-Mar-15 4:59
mveRichard Deeming27-Mar-15 4:59 
GeneralRe: I found some issues in coding but I don't know how to solve them. Could you give me some advices ? Pin
patrickjiang258027-Mar-15 5:20
patrickjiang258027-Mar-15 5:20 
QuestionThe usage of Unsigned types Pin
GerVenson26-Mar-15 5:36
professionalGerVenson26-Mar-15 5:36 
Hey,

I would like to discuss the value of using Unsigned value types for ensure the validy of your buissnes logic.

Just to name some exampels.

Does it make sense to let the Linq Extention 'Skip' or 'Take' be, accepting values smaller then 0? No not for me, but then why it allows this behavior by taking a int instead of an uint? Don't mention that the uint takes less memory but this is not the point.

I meant that the same space in memory can hold a bigger number ( for int ) then the signed as we got a bit more to store our data. ( sory for the vague explanation )

I Developed a network lib ( currently not OpenSource but soon Wink | ;-) ) that takes a Port. i saw that other libs are using an int at this point. This is absolute bad from my point of view. The only valid value type here is the Ushort ( 0 to 65,535 ). It does not allow a non Positiv number and limits the parameter to the buissnes logic. So why are thees value types not used that often?

modified 27-Mar-15 5:35am.

GeneralRe: The usage of Unsigned types Pin
PIEBALDconsult26-Mar-15 5:52
mvePIEBALDconsult26-Mar-15 5:52 
AnswerRe: The usage of Unsigned types PinPopular
Richard Deeming26-Mar-15 6:02
mveRichard Deeming26-Mar-15 6:02 
AnswerRe: The usage of Unsigned types Pin
OriginalGriff26-Mar-15 6:05
mveOriginalGriff26-Mar-15 6:05 
AnswerRe: The usage of Unsigned types Pin
Sascha Lefèvre26-Mar-15 6:09
professionalSascha Lefèvre26-Mar-15 6:09 
GeneralRe: The usage of Unsigned types Pin
harold aptroot26-Mar-15 22:41
harold aptroot26-Mar-15 22:41 
GeneralRe: The usage of Unsigned types Pin
GerVenson26-Mar-15 23:40
professionalGerVenson26-Mar-15 23:40 
GeneralRe: The usage of Unsigned types Pin
harold aptroot26-Mar-15 23:45
harold aptroot26-Mar-15 23:45 
AnswerRe: The usage of Unsigned types Pin
den2k8826-Mar-15 22:55
professionalden2k8826-Mar-15 22:55 
AnswerRe: The usage of Unsigned types Pin
jschell27-Mar-15 11:15
jschell27-Mar-15 11:15 
QuestionCombobox and "autocompletion" Pin
TMattC26-Mar-15 0:18
TMattC26-Mar-15 0:18 
AnswerRe: Combobox and "autocompletion" Pin
TMattC26-Mar-15 0:23
TMattC26-Mar-15 0:23 
AnswerRe: Combobox and "autocompletion" Pin
Simon_Whale26-Mar-15 1:29
Simon_Whale26-Mar-15 1:29 
GeneralRe: Combobox and "autocompletion" Pin
TMattC26-Mar-15 4:38
TMattC26-Mar-15 4:38 
Questionadd PDF file to email body not an attachment Pin
sourabkhajuria25-Mar-15 23:49
sourabkhajuria25-Mar-15 23:49 
AnswerRe: add PDF file to email body not an attachment Pin
OriginalGriff25-Mar-15 23:53
mveOriginalGriff25-Mar-15 23:53 
AnswerRe: add PDF file to email body not an attachment Pin
Dave Kreskowiak26-Mar-15 1:27
mveDave Kreskowiak26-Mar-15 1:27 
QuestionUnderstanding Async / Await Pin
zephaneas25-Mar-15 10:07
zephaneas25-Mar-15 10:07 

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.