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

C#

 
GeneralRe: I have downloaded the source code of Open Source Extensible Enterprise n-tier Application Framework with Multilayered Architecture Pin
Malikdanish13-Feb-16 21:58
professionalMalikdanish13-Feb-16 21:58 
QuestionShow only whole numbers on axis in chart Pin
CJ201013-Feb-16 6:21
CJ201013-Feb-16 6:21 
AnswerRe: Show only whole numbers on axis in chart Pin
Gerry Schmitz13-Feb-16 10:00
mveGerry Schmitz13-Feb-16 10:00 
Questionpartial or completely match rows in c# in a datagridview Pin
anyi2612-Feb-16 8:19
anyi2612-Feb-16 8:19 
AnswerRe: partial or completely match rows in c# in a datagridview Pin
Sascha Lefèvre12-Feb-16 10:00
professionalSascha Lefèvre12-Feb-16 10:00 
AnswerRe: partial or completely match rows in c# in a datagridview Pin
anyi2613-Feb-16 1:03
anyi2613-Feb-16 1:03 
GeneralRe: partial or completely match rows in c# in a datagridview Pin
Sascha Lefèvre13-Feb-16 1:35
professionalSascha Lefèvre13-Feb-16 1:35 
QuestionSemantic Types for Name-Strings Pin
Sascha Lefèvre11-Feb-16 3:07
professionalSascha Lefèvre11-Feb-16 3:07 
In my current project I have to look up a lot of objects by their name. In order to make this "semantically type-safe" I thought of wrapping the name-strings in semantic types for the different types of those objects. I haven't seen this done in any other project yet, only with semantic types for strings that for human understanding actually present a specific type of entitiy, like email addresses, phone numbers etc. and then also encapsulate the functionality to ensure that the string is semantically valid. In my case I would just need something like this:
C#
class NameOfSomeType
{
    public readonly string Name;

    public NameOfSomeType (string name) { Name=name; }

    // + overrides for Equals, GetHashCode, ToString
}
As I haven't seen something like this done anywhere yet I would like to ask for your opinion of this.

Sascha
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

AnswerRe: Semantic Types for Name-Strings Pin
Richard Deeming11-Feb-16 3:37
mveRichard Deeming11-Feb-16 3:37 
GeneralRe: Semantic Types for Name-Strings Pin
Sascha Lefèvre11-Feb-16 4:49
professionalSascha Lefèvre11-Feb-16 4:49 
AnswerRe: Semantic Types for Name-Strings Pin
RugbyLeague11-Feb-16 3:37
RugbyLeague11-Feb-16 3:37 
GeneralRe: Semantic Types for Name-Strings Pin
Sascha Lefèvre11-Feb-16 4:50
professionalSascha Lefèvre11-Feb-16 4:50 
GeneralRe: Semantic Types for Name-Strings Pin
RugbyLeague11-Feb-16 4:53
RugbyLeague11-Feb-16 4:53 
AnswerRe: Semantic Types for Name-Strings Pin
Pete O'Hanlon11-Feb-16 4:10
mvePete O'Hanlon11-Feb-16 4:10 
GeneralRe: Semantic Types for Name-Strings Pin
Sascha Lefèvre11-Feb-16 5:00
professionalSascha Lefèvre11-Feb-16 5:00 
AnswerRe: Semantic Types for Name-Strings Pin
Gerry Schmitz11-Feb-16 4:52
mveGerry Schmitz11-Feb-16 4:52 
GeneralRe: Semantic Types for Name-Strings Pin
Sascha Lefèvre11-Feb-16 5:07
professionalSascha Lefèvre11-Feb-16 5:07 
GeneralRe: Semantic Types for Name-Strings Pin
Gerry Schmitz11-Feb-16 7:29
mveGerry Schmitz11-Feb-16 7:29 
AnswerRe: Semantic Types for Name-Strings Pin
Midi_Mick11-Feb-16 11:02
professionalMidi_Mick11-Feb-16 11:02 
AnswerRe: Semantic Types for Name-Strings Pin
BillWoodruff15-Feb-16 4:59
professionalBillWoodruff15-Feb-16 4:59 
GeneralRe: Semantic Types for Name-Strings Pin
Sascha Lefèvre15-Feb-16 5:16
professionalSascha Lefèvre15-Feb-16 5:16 
GeneralRe: Semantic Types for Name-Strings Pin
BillWoodruff15-Feb-16 8:36
professionalBillWoodruff15-Feb-16 8:36 
GeneralRe: Semantic Types for Name-Strings Pin
Sascha Lefèvre15-Feb-16 9:08
professionalSascha Lefèvre15-Feb-16 9:08 
QuestionHow to reset scannersettings using .net code Pin
Member 1125820311-Feb-16 1:09
Member 1125820311-Feb-16 1:09 
AnswerRe: How to reset scannersettings using .net code Pin
OriginalGriff11-Feb-16 1:37
mveOriginalGriff11-Feb-16 1:37 

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.