votes
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++) { ...
blah blah blah is here! blah blah » Close
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++) { ...
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 ...
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 ...
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 ...
What benefits do I get if I code all my classes and even their method parameters to interfaces?
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?
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 ...
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 ...
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 ...
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?
Got feedack? Found a bug? report it here.