blah blah blah is here! blah blah » Close

0
votes
1 answers

Dealing with text files in C#

Hello, Am writing a programme that is getting the contents of a text file one by one by use of a for loop. as can be seen below. [code] for (int i = 0; i < FileName.Length; i++) { ...

0
votes
2 answers

OOP question

Hi all I'm trying to learn object-oriented technique and I think I start to learn it now, however there is one thing I still struggle with and would like to ask you. For example if I have a class with an arraylist in, which I populate ...

1
votes
1 answers

Help designing a name/value pair metaproperty collection that I will use in all my entity objects

Rick_A
761

I want to create a 'MetaProperties' property on all my entity classes. So I would have a BaseEntity abstract class that all my other entities would inherit from. At the database level, I will have a NVARCHAR(MAX) column. I want to ...

0
votes
0 answers

Best practise design patterns for a web application

salman
510

I have been reading allot about design patterns lately, and I have found a general pattern that I think really makes sense. It goes something like this: 1. POCO (plain old C# class) for all your entities 2. DAO's for each entity/tabl ...

1
votes
1 answers

Is it a good practise for all classes amd method parameters to use interfaces?

What benefits do I get if I code all my classes and even their method parameters to interfaces?

2
votes
2 answers

When should I use an abstract class versus an interface

I am a little confused when to use an abstract class and when to use an interface? How do you know which to use and when? Are there specific circumstances that I should be aware of?

1
votes
1 answers

help designing a permissions module

I have an object like this: [code] public class Content { public int Id { get; set; } public string Title { get; set; } public string Text { get; set; } public ContentType Type { get; set; } public lon ...

1
votes
2 answers

if objects are passed by reference, why do you need ref and this keywords?

Little confused in regards to passing objects as parameters in methods. From what I understand, in c#, objects are passed by reference. If that is the case, why do you need keywords like: this and ref? i.e.: [code]public void Up ...

0
votes
0 answers

starting a new web project, recomendations on solid design patterns and architecture

I'm starting a new web app, and I want to build it with flexibility and maintainability in mind. In the past I would just create classes that mapped 1:1 with database tables, and then created another class which was kind of a factory tha ...

1
votes
3 answers

What is the difference between a virtual and an abstract class member?

I know that a virtual member enables any inheriting class to override the implementation of the member marked with a virtual. Are there any differences between a virtual and a abstract member?

Feedback