Join Now
|
Login
home
login
join now
products and pricing
design pattern framework
design patterns
javascript tutorial
sql + database tutorial
all tutorials
connection strings
visual studio shortcuts
c# coding standards
html color codes
all references
explore
questions
ask question
tags
users
contact us
training courses
schedule
registration
sitemap
about us
training and education for professional developers
login
join now
C#, ASP.NET, WPF, WCF, LINQ, PATTERNS
Home
Questions
Tags
C#
Tagged with:
C#
56
records found
date
active
views
answers
votes
Making abstractions of .net classes to be able to unit test and constructor inject
Hi To make it possible to unit test and to use constructor injection I often write wrappers for dotnet classes. Like the ones you find in the System.Web namespace, eg. HttpContextWrapper. I normally write: ...
Nov 07, 2011
by
Hans Kindberg
50
50
C#
abstractions
wrapper
adapter
Facade
Views
409
Answers
0
Votes
0
Answer
Code
Follow
0
How to: Deserialization of nested JSON
I am receiving the JSON formatted string from a web service over the Internet. It is roughly formatted like so: { "version" : 2, "query" : "Companies, ...
Mar 24, 2011
by
Leo Benson
122
96.3
Last:
Sep 09, 2011
by
Kevon Hayes
68
95.1
C#
JSON
Parsing
Views
1.9K
Answers
3
Votes
0
Answer
Code
Follow
0
How to control access to Interface implementations
I have a question related to Interfaces. Suppose I have two interfaces (Interface1 and Interface2) and each has three different methods. I am implementing both interfaces in a class named ClassY. My ...
Jun 29, 2011
by
Vishal Srivastava
50
50
Last:
Aug 18, 2011
by
Danut Prisacau
108
96.3
C#
Interfaces
Implementation
Views
1.3K
Answers
3
Votes
0
Answer
Code
Follow
0
Entity Framework 4.1 and POCOS
Hello, I want to implement a data access layer using entity framework 4.1 with POCO's and was wondering how best to implement. When looking at the patterns in action solution, I really like the architecture you ...
Aug 17, 2011
by
Kevin Hopkins
60
94.5
C#
Entity Framework 4.1
Views
832
Answers
0
Votes
0
Answer
Code
Follow
2
What design pattern(s) to use to build a extractor for a flat file based on a specification?
I have a flat file where each row has a specification. Say the first row specification level 100 a header row and all 200s are data rows and level 199 is a file summary. I have created a data table that ...
Jun 16, 2011
by
Tony Blogumas
50
50
Last:
Aug 15, 2011
by
Tarriq Ferrose Khan
80
95.9
C#
Business Tier
Flat File Parser
Views
1.6K
Answers
3
Votes
0
Answer
Code
Follow
0
MVP pattern for an MDI application
My current application that I maintain is a tabbed MDI-based application that analyzes and graphs data stored in a database. My question is whether or not the MVP is suitable for this type of application. From ...
Jul 15, 2011
by
Mark Polsen
60
94.5
Last:
Jul 28, 2011
by
Ryan Andrus
60
94.5
C#
LINQ
MDI
Winforms
Charts
Views
830
Answers
1
Votes
1
Answer
Code
Follow
0
Interpretation Setup Consultation (C#)
Hello. This is my first question ever. Party right here. Now, onto the question! Background information: I am creating a framework for a game. It is a M(ulti) U(ser) D(ungeon) or a text based imagination driven ...
Jul 25, 2011
by
Karl Wessels
63
95.0
Last:
Jul 28, 2011
by
Karl Wessels
63
95.0
C#
Framework
Interpretation
Gaming
Views
681
Answers
2
Votes
0
Answer
Code
Follow
0
Comet Design Pattern or 'Ajax Push'
Hi, I am looking for an example on the Comet Pattern. This is also known as Ajax Push or Reverse Ajax. It allows client pages to open long-running HTTP Queries to a website. Thanks you so ...
Jul 18, 2011
by
Mark Casey
50
50
Last:
Jul 21, 2011
by
Kalyan Kamesh
50
50
C#
Comet Pattern
Ajax Push
Reverse Ajax
Views
702
Answers
1
Votes
0
Answer
Code
Follow
0
Question about the Presenter class in the Design Pattern Framework
This may be more of a C# question and not a Design Pattern question, but could someone please explain the following line from the WinForms Presenter class? public class Presenter<T> where T : IView Is this ...
Jul 09, 2011
by
Greg Deward
50
50
Last:
Jul 12, 2011
by
Robert Blixt
1,128
99.9
C#
Presenter
Views
631
Answers
1
Votes
0
Answer
Code
Follow
0
Which Application Framework to use?
Hi All, I am currently working on a few small projects. We have to decide which framework to go for as we will probably use this framework as backbone of all of other incoming small projects. I'm currently ...
Jul 11, 2011
by
Pei Foon Teo
50
50
C#
Framework
Design
3-Tier
Views
431
Answers
0
Votes
0
Answer
Code
Follow
0
Please name the following Design Pattern...
Hi All, Can someone let me know which Design Pattern are we using?. Our application has Presentation Layer, Business layer and Data layer. The data is exchanged between these three layers using ...
Jun 27, 2011
by
Anish Anick
55
93.8
Last:
Jul 05, 2011
by
Venkatesh D
60
94.5
C#
Design Pattern
Views
911
Answers
1
Votes
0
Answer
Code
Follow
1
Which Design Pattern do I need for this?
Hi, I am building a WinForm application. I have a Main Form that contains many many other Forms with the same functionality except the name and the database connection. I don't know how ...
Jun 14, 2011
by
David Kt
58
93.9
Last:
Jul 05, 2011
by
Venkatesh D
60
94.5
C#
.NET 4
Winforms
Pattern
Views
1.7K
Answers
3
Votes
0
Answer
Code
Follow
0
C# Interfaces. Why are they separate? And why would anyone use this?
Hi All, I have a question about C# interfaces. Basically I understand that when using interfaces it means you're building loosely coupled applications. The interface is merely a ...
Jul 04, 2011
by
Vijay Raghavendran
49
0
Last:
Jul 04, 2011
by
Vijay Raghavendran
49
0
C#
Interfaces
Beginner
Views
939
Answers
1
Votes
0
Answer
Code
Follow
0
ValidateIPAddress.cs - constructor correct?
Hi, Can someone please confirm whether the second constructor in the following codefile (ValidateIPAddress.cs, from Patterns in action 4.0) is correct? //ValidateIPAddress.cs: using System; using ...
Jun 08, 2011
by
Ole Johnny Gjen
50
50
Last:
Jun 08, 2011
by
Dan McMillan
610
99.9
Design Pattern Framework
C#
ValidateIPAddress.cs
Views
678
Answers
1
Votes
0
Answer
Code
Follow
0
Private Interface Inheritance
I had a chance to see the following private interface inheritance code. Is this a common practice? Where is this being used? Thanks. interface IAnimal { Eat() } class Dog : IAnimal { void ...
Apr 11, 2011
by
Jacob Jacob
50
50
Last:
Apr 21, 2011
by
Saurin Travadi
50
50
C#
Interface
Inheritance
Views
1.3K
Answers
2
Votes
0
Answer
Code
Follow
0
Please review my Factory Pattern implementation
Hi I am starting a school project for which decided to go by an Interface pattern. Please review the code and let me will it work out for future implementation example adding WCF project. Thank you! ...
Apr 06, 2011
by
Imran Khan
275
99.5
C#
Factory Pattern
Views
872
Answers
0
Votes
0
Answer
Code
Follow
0
Do you feel guilty when using a C# switch statement?
Now that I am familiar with Design Patterns I am beginning to feel guilty whenever I use the C# switch statement. It is almost like switches are a 'code smell' and that a better solution is possible ...
Mar 29, 2011
by
John Telstra
56
93.8
Last:
Mar 29, 2011
by
Robert Blixt
1,128
99.9
C#
switch
Code Smells
Views
1.4K
Answers
1
Votes
0
Answer
Code
Follow
0
Career path: C# versus VB.NET
Hello, I am coming from an assembly / C background and I am ready to move into building databased business applications in .NET. My plan is to go as far as possible and become an .NET architect ...
Aug 30, 2010
by
Henry Wong
69
95.2
Last:
Mar 17, 2011
by
Gerard del rosario
60
94.5
Design Patterns
C#
VB.NET
Career Development
Views
7.5K
Answers
12
Votes
0
Answer
Code
Follow
0
Usage of the C# var keyword. Is there a Best Practice?
The C# var keyword was introduced in C# version 3.0. According to Eric Lippert from the Microsoft C# team it was included for 2 primary reasons: 1) To limit redundant code, such as: ...
Mar 17, 2011
by
Henry Wong
69
95.2
Last:
Mar 17, 2011
by
Rajesh Pillai
1,251
100.0
C#
var
Best Practices
Views
1.5K
Answers
1
Votes
1
Answer
Code
Follow
0
Why? C# abstract classes without abstract members
I am familiar with abstract classes, interfaces, and the like. What is not clear to me is why anyone would create a C# abstract class that does not have abstract members? (the C# compiler allows this). ...
Mar 15, 2011
by
Juan Perez
129
96.4
Last:
Mar 16, 2011
by
Vivekananda P
50
50
C#
Language
abstract
Views
1.8K
Answers
3
Votes
0
Answer
Code
Follow
0
Most suitable Design Pattern(s) for Excel Add-In
I am tasked with creating an Excel Add-In which will display a Ribbon within Excel. Basically, my application will fetch cube data and display it as multiple reports in an Excel workbook. Users will ...
Mar 14, 2011
by
Kalyan Sengupta
50
50
Design Patterns
C#
Excel
Views
1.6K
Answers
0
Votes
0
Answer
Code
Follow
0
Static data access objects variables in ActionService for standalone application
Hi, When the Patterns In Action sample is run a standalone mode, should the Static data access objects variable changed to non static ones? // Create static data access objects private static readonly ...
Mar 09, 2011
by
London UK
56
93.8
Last:
Mar 10, 2011
by
Dan McMillan
610
99.9
C#
Entity Framework
Views
1.9K
Answers
5
Votes
0
Answer
Code
Follow
0
Refactoring to Design Patterns
Hi, I find it easier to understand the Design Patterns by writing code initially which doesn't follow any pattern or object oriented principles and refactoring it step by step to convert it into one of the ...
Mar 09, 2011
by
Ramakrishna Pujari
60
94.5
Last:
Mar 09, 2011
by
Rajesh Pillai
1,251
100.0
Design Patterns
Refactoring
C#
Views
1.1K
Answers
1
Votes
1
Answer
Code
Follow
0
How to build a custom .Net Framework ?
Hi All, Could you please share your thoughts (Guidelines, best practices) to create a custom .Net Framework (preferably C#). Thanks and Regards ...
Feb 28, 2011
by
Tarriq Ferrose Khan
80
95.9
Last:
Mar 09, 2011
by
Rajesh Pillai
1,251
100.0
C#
.Net Framework
Design Patterns
Views
2.5K
Answers
3
Votes
0
Answer
Code
Follow
0
Which patterns to use for a Test Automation Framework?
I am writing a Test Automation Framework that involves automating testing a Winforms and WPF based application having 200 screens. The Automation Framework should do the control clicks and screen actions just as a ...
Feb 14, 2011
by
Prasenjit Naskar
50
50
Last:
Mar 08, 2011
by
Robert Blixt
1,128
99.9
Testing
Framework
C#
Views
2.1K
Answers
3
Votes
0
Answer
Code
Follow
0
Implementation of third party application integration
Hi guys, Firstly I would like to say that Design Patterns Framework is one great tool!!! - It has taken me a little while to adapt to the principles and methodology - slight shift in design paradigm from old to ...
Nov 04, 2010
by
Sasa Savic
60
94.5
Last:
Mar 03, 2011
by
Robert Varga
370
99.9
Framework
C#
External API
Views
1.3K
Answers
1
Votes
1
Answer
Code
Follow
0
DIfference between IDictionary and Dictionary.
What is DIfference between IDictionary and Dictionary in terms of implementation. Please let me know when to use what. ...
Mar 03, 2011
by
Pet Hogkin
50
50
Last:
Mar 03, 2011
by
Robert Varga
370
99.9
C#
Interface
Views
1.2K
Answers
1
Votes
0
Answer
Code
Follow
0
When would you use an Abstract class?
Hello everyone, This is probably a very easy question you guys, but when would we need to use an Abstract class? Thank you ...
Feb 02, 2011
by
Satya Chauhan
50
50
Last:
Feb 23, 2011
by
Vivekananda P
50
50
C#
abstract
Views
5.5K
Answers
7
Votes
0
Answer
Code
Follow
0
Why is static not allowed on an Interface?
Hi folks, Could anyone tell me why 'static' is not allowed on an Interface in C#? Thanks, ...
Feb 02, 2011
by
Satya Chauhan
50
50
Last:
Feb 22, 2011
by
Jani Hyytiäinen
60
94.5
C#
Static
Views
2.3K
Answers
2
Votes
0
Answer
Code
Follow
0
Iphone App development tools
Hallo All: Please help with what tools I need to create an Iphone application that retrieves real-time sales data from my restaurant database. I am an entry level C# developer.. Thanks so ...
Feb 06, 2011
by
Sam Yonis
60
94.5
Last:
Feb 20, 2011
by
Hans-Petter Eitvet
70
95.3
iPhone
Tools
C#
Views
1.7K
Answers
3
Votes
1
Answer
Code
Follow
0
1
2
Next
15
30
50
Per Page
return to top