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

C#

 
GeneralRe: Databinding on ComboBox Pin
guidoursus14-Mar-08 5:29
guidoursus14-Mar-08 5:29 
QuestionConsole application with args: Is there a way to pass args from VS when debugging? Pin
Frankidoze14-Mar-08 4:37
Frankidoze14-Mar-08 4:37 
AnswerRe: Console application with args: Is there a way to pass args from VS when debugging? Pin
laserbaronen14-Mar-08 4:39
laserbaronen14-Mar-08 4:39 
AnswerRe: Console application with args: Is there a way to pass args from VS when debugging? Pin
Rob Philpott14-Mar-08 4:39
Rob Philpott14-Mar-08 4:39 
GeneralBusiness entities and unique identifiers. Pin
matbuk14-Mar-08 4:08
matbuk14-Mar-08 4:08 
GeneralRe: Business entities and unique identifiers. Pin
Rob Philpott14-Mar-08 4:23
Rob Philpott14-Mar-08 4:23 
GeneralRe: Business entities and unique identifiers. Pin
matbuk14-Mar-08 4:38
matbuk14-Mar-08 4:38 
GeneralRe: Business entities and unique identifiers. Pin
Rob Philpott14-Mar-08 4:45
Rob Philpott14-Mar-08 4:45 
This is tricky in .NET. In C++ you'd provide a method to set the id and only allow this to be called by marking the legitimate thing which can call it as a friend.

The granularity is less in C#, but you can mark the method as internal then it can only get called by other types in your assembly. You can use [assembly:InternalsVisibleTo("OtherAssembly")] to bodge this to allow other assemblies to see your internals. So you could adopt this approach and have your data access layer (which is presumably in a seperate assembly) given this special permission.

Regards,
Rob Philpott.

GeneralRe: Business entities and unique identifiers. Pin
matbuk14-Mar-08 4:50
matbuk14-Mar-08 4:50 
QuestionHow to view PDF in C# (Window forms) Pin
Khaleek Ahmad14-Mar-08 2:11
Khaleek Ahmad14-Mar-08 2:11 
AnswerRe: How to view PDF in C# (Window forms) Pin
C1AllenS14-Mar-08 3:18
C1AllenS14-Mar-08 3:18 
Generalmaintain back the combobox item Pin
angels77714-Mar-08 1:57
angels77714-Mar-08 1:57 
Questionconsole application issue Pin
Pankaj Garg14-Mar-08 1:02
Pankaj Garg14-Mar-08 1:02 
GeneralRe: console application issue Pin
Rob Philpott14-Mar-08 1:15
Rob Philpott14-Mar-08 1:15 
GeneralAvoid file deletion Pin
Tanuja12314-Mar-08 0:14
Tanuja12314-Mar-08 0:14 
GeneralRe: Avoid file deletion Pin
Rob Philpott14-Mar-08 0:25
Rob Philpott14-Mar-08 0:25 
GeneralRe: Avoid file deletion [modified] Pin
Nilesh Hapse14-Mar-08 1:01
Nilesh Hapse14-Mar-08 1:01 
GeneralRe: Avoid file deletion Pin
Rob Philpott14-Mar-08 1:05
Rob Philpott14-Mar-08 1:05 
GeneralRe: Avoid file deletion Pin
Programm3r14-Mar-08 0:29
Programm3r14-Mar-08 0:29 
GeneralRe: Avoid file deletion Pin
Lutosław14-Mar-08 3:02
Lutosław14-Mar-08 3:02 
GeneralRe: Avoid file deletion Pin
Dave Kreskowiak14-Mar-08 7:13
mveDave Kreskowiak14-Mar-08 7:13 
QuestionTextWriter.WriteLine() Pin
nilam247714-Mar-08 0:06
nilam247714-Mar-08 0:06 
QuestionRe: TextWriter.WriteLine() Pin
Programm3r14-Mar-08 0:16
Programm3r14-Mar-08 0:16 
QuestionRe: TextWriter.WriteLine() Pin
nilam247714-Mar-08 0:20
nilam247714-Mar-08 0:20 
GeneralRe: TextWriter.WriteLine() Pin
phannon8614-Mar-08 0:22
professionalphannon8614-Mar-08 0:22 

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.