C# is a multiparadigm, managed, garbage-collected object-oriented programming language created by Microsoft in conjunction with the .NET platform, but also used with non-Microsoft implementations (most notably, Mono). Versions 1.0/1.2 and 2.0 of C# were submitted and approved as both ECMA and ...
0
votes
1answer
49 views
How should I setup a UI for editing a binary tree?
I need to allow the user to create an binary tree. I have a Backbone Model populating properly from the database, the problem I am stuck on is how do I setup the ui elements in a way that is fairly ...
0
votes
2answers
118 views
What programming language would be the best fit for small browser games? [closed]
I want to make small web apps containing little games (muds, TDs and roguelikes) or talent calculators for MMOs etc.
After some research I have had people say that ASP.NET MVC would be perfect for ...
0
votes
3answers
95 views
How to Console.WriteLine from [TestMethod]?
I am trying to show some information from a [TestMethod] method.
Usually we use NUnit and a line with Console.WriteLine runs fine and we can see it in 'output' window, but on this project we must to ...
-1
votes
1answer
62 views
Industry consortium for wider C# adoption?
Are there any software consortium to promote C# as a language? I'm aware of Mono and see it as a sincere, valiant attempt. However, its unlikely they can continuously outrun Microsoft inside a ...
4
votes
2answers
98 views
choosing a functional language platform for a new project
I have been writing code for a few years now and I don't believe I can claim to have a complete knowledge in this job yet.
My experience primarily rolls around C# related areas with a decent ...
0
votes
3answers
89 views
Software development project inception phase
Currently our team develops Web Applications and now we are going to Windows Forms applications.
I have created the inception phase for our Windows Forms project structure.
eg:
ApplicationSolution
...
2
votes
2answers
39 views
Is it considered best practice to dynamically bind return types from the Entity context?
MyDbEntities context = new MyDbEntities();
var result = context.StoredProcedureName(userId);
In the situation above, is it considered best practice to use var or ObjectResult<ComplexType>?
-2
votes
1answer
72 views
How to proceed on my project [closed]
I've been learning c# for about 3 months and I have a pet project that I'm working on to develop my skills further which is a student database that keeps the personal records of students, the subjects ...
5
votes
2answers
137 views
Is there a certain number of lines of code to be followed /maintain?
I am developing a software system (Patient Administration System) and I have noticed it already had 451 lines of code(in one namespace).
Is this bad? Or does the number of lines of code not matter ...
-2
votes
0answers
21 views
Regular expression review [migrated]
I'm trying to use regular expressions in my but they don't seem to be correct. The user enters a mips instruction in the command line I then check each substring to see if it matches the expected ...
-2
votes
0answers
73 views
Enum of regular expression [closed]
I want to create a enumeration that contains regular expression. This is because I want to check if a string matches mips syntax.
i currently have
public enum Register
{
Zero = ...
5
votes
3answers
355 views
Base classes as factories?
I was writing some code over the weekend and I found myself wanting to write a factory as a static method in a base class.
My question is simply to know if this is a c# idomatic approach?
My sense ...
8
votes
4answers
191 views
What aspects of a project should be covered when presenting it in an interview?
I am working as a .Net developer for a couple of years. I don't have experience in presenting projects but I have an interview and I will be expected to present the projects that I worked on in the ...
1
vote
0answers
104 views
Adding scripting capability to a .NET application
I already have a working implementation that adds scripting to an application. The application currently generates and compiles scripts from C# snippets (taken from different user provides ...
0
votes
6answers
180 views
IF ELSE shorthand. Does it hurt readability [closed]
Possible Duplicate:
Is the ternary operator evil?
Does using shorthand if else statments hurt readability?
Compare:
string name = street != null ? street.Owner : "Not known";
With:
...
3
votes
4answers
74 views
How to ensure a single coding standard in .NET with tool support
Probably, the basic situation is familiar to everyone. You have agreed on certain coding standards in your team and now it is time to make sure that everybody follows them.
Some do it via heavy ...
4
votes
8answers
455 views
How can I move a team from C# ASP.NET development to PHP development using Drupal?
I have a team of skilled C# developers with vast experience in creating ASP.NET MVC applications. We will soon be starting a new big web site project based on the Drupal platform. My developers do not ...
2
votes
1answer
43 views
Testing chainable method calls return type and value
Is it worth testing the return type and value of a method call that is designed for chaining? It is conceivable that a fellow programmer could accidentally change the return type to void and remove ...
-4
votes
0answers
23 views
Closing Help window doesn't set the focus back to the application window [closed]
Due to a design limitation of the HelpProvider component in .NET, if you call Help.ShowHelp() with "this" as the first parameter, the help file may be displayed in a modal window. The user then won't ...
-3
votes
1answer
71 views
what the best? [closed]
what the best in asp.net creating dll or create folder for classes for my site?
when I create folder for classes I can also reach to any class in another project by
right click on the solution and ...
-1
votes
0answers
40 views
How to Crop Image without changing the aspect ratio [closed]
I need to crop a image without changing its aspect ratio. i am taking picture from CANON1100D using EDSDK. Captured image
Width = 1920 and Height=1280
so aspect ration is 1.5. but i need picture ...
58
votes
16answers
5k views
Coding Guideline : Methods shouldn't contain more than 7 statements?
I was looking through the AvSol Coding Guidelines for C# and I agree with nearly everything but I'm really curious to see what other think of one specific rule.
AV1500
Methods should not ...
1
vote
1answer
116 views
Where's a good place to learn how to develop a schedule/appointment system in C#? [closed]
Not a job/task schedule, but actual appointment system people can use to create recurring events. It should support many recurrence patterns such as 1st Monday of each month, every Tues/Thurs, a ...
-2
votes
2answers
138 views
As ASP.NET C# developer should we learn HTML5 and Javascript? [closed]
Should we learn HTML5 and Javascript or can I expect ASP.NET and C# will generate my HTML5 components and Javascript code (as usual)?
4
votes
4answers
198 views
Business Objects within a Data Access Layer
So I've been creating a data access layer via TDD and have approached somewhat of a concern. I'd rather not start down the wrong path, so I figured I'd ask you guys to see if my thoughts were in line ...
1
vote
1answer
84 views
Encapsulating a class within another class to hide it's exposed properties and details
I have essentially a data model class that represents an XML data structure that we use to model our system. The model class is in a shared project that is used by a number of different solutions in ...
-1
votes
0answers
29 views
Programatically save the innerText of webpages from a website [migrated]
I'm taking an online class with Google's Apex system, and would like to be able to automatically save the data from certain pages. The process of logging in and getting to the content when browsing ...
-2
votes
0answers
59 views
How to get GUI IDE with Mono C# ? [closed]
I have downloaded Mono C# and installed it but I only have the shell in which I can compile applications (written somewhere else).
Can someone guide me how to get the GUI based IDE ?
-2
votes
0answers
29 views
Useful features in a C# DLL analysis? [closed]
Just for fun, I'm writing a program (in C#, because I need to learn it) to analyze C# DLLs. I've used PERWAPI before, so it shouldn't be too much trouble to relearn its basic functions. What I'm ...
9
votes
11answers
550 views
Examples of operator overloading, which make sense
While I learning C#, I found that, the C# supports operator overloading. I have problem with good example which:
Make sense (ex. adding class named sheep and cow)
Is not an example of concatenation ...
-1
votes
0answers
31 views
Read multi-row fixed width records from textfile [closed]
I need to read a textfile full of records. There is a header with several fields in the first two rows, after that the records are listed. Each record covers three rows. Every record consits of fields ...
2
votes
1answer
86 views
Object orientated data structures in database driven applications
I've started working for a company that maintains a small/medium sized commercial website. The website is written in c# asp.net, and uses SQL Server as a database. The structure of the code is very ...
13
votes
4answers
338 views
What's the difference between implementing an Interface explicitly or implicitly?
In Visual Studio I can right-click on an interface and choose to Implement Interface, or Implement Interface Explicitly.
public class Test : ITest
{
public string Id // Generated by Implement ...
0
votes
1answer
103 views
Annotations in c# [closed]
I am looking to understand annotations and do source code analysis.
Yes this sounds freaky. What i do not know is correct direction to work in. I am trying to make custom annotations and later on ...
2
votes
3answers
70 views
Help system for Silverlight application
I would like to incorporate help into my Silverlight application. I don't want content to be embedded into XAP and I don't want to take user into separate page.
So, ideally I'd like to find/buy ...
9
votes
2answers
301 views
How can I unit test audio?
I have inherited a small project and want to extend it and stabilize it at the same time by writing Unit Tests for all the new code I am adding. The first class, TypedAudioCreator, creates audio files ...
4
votes
2answers
216 views
Best example for mixins in .NET
I want to present the concept of mixins and their implementation in .NET.
The way they work in .NET is you add extension methods on an interface and decorate classes with said interface.
What would ...
5
votes
2answers
127 views
Separating data access in ASP.NET MVC
I want to make sure I'm following industry standards and best practices with my first real crack at MVC. In this case, it's ASP.NET MVC, using C#.
I will be using Entity Framework 4.1 for my model, ...
0
votes
0answers
6 views
Unable to send data from C# to Java (Android) program [migrated]
I am trying to send data from a C#.NET (Windows Application) program to a Java (Android App) program and vice versa, via TCP connection through Wifi. Till now I am success to send data from Java to ...
-1
votes
5answers
230 views
Organizing single page code well with Notepad++
I've a c# file that will contain, most likely 10,000+ lines of code. I'd like to break this file into tabbed segments, so I can organize each method into a certain tab and label the tab something like ...
5
votes
3answers
106 views
Extending Mono's C# compiler with additional custom features (more or less syntactic sugar)
I'm aware that this is a rather broad question, but here it goes anyway...
What is, in your opinion, the most practical way to create own C# implementation with minor additions to the existing 4.0 ...
0
votes
0answers
32 views
Tips on my multi-threading intuition? [migrated]
I wrote a program to copy a .doc template, add some text to it, then save and close it. I have to do this many times, and saving and closing a word document is slow. I decided to use ...
2
votes
1answer
103 views
Sanity of design for my in-memory object representations of database rows
I've been trying to revise the structural design of the C#.NET-based system I'm currently working on. The new design involves a rather light-weight object-relational mapping framework (we're trying ...
-3
votes
0answers
25 views
Any suggestions for learning a new framework/language? [closed]
I'm currently halfway through taking a 10-week .Net development certificate program where we learn about C#, VB, WinForms, ADO.Net, LINQ, Entity Framework, Asp.Net, Web Froms, MVC, JQuery, and I'm ...
8
votes
4answers
283 views
Shortcomings of using dynamic types in C#
I have been recently studying more on the dynamic types in C#. With some examples I understood once the code is compiled, it does not need to be recompiled again but can be executed directly.
I feel ...
0
votes
0answers
26 views
How to properly display FK messages on UI [migrated]
I have a CRUD business app with various business forms where users edit data. Right now it's V1 and when user deletes record - it shows "FK_ABC_AA.. constraint violated, etc."
I want to do better ...
6
votes
2answers
186 views
Delegates and events
What is the difference between
public delegate void SecondChangedHandler(Object clock, TimeInfoEventArgs ti);
public event SecondChangedHandler OnSecondChanged;
and
public event ...
2
votes
2answers
137 views
Putting it all together
I've been reading a few books on c# development over the last few months (clr via c#, architecting applications for the enterprise, c# 4 in nutshell just to give you an idea). I really feel it's been ...
2
votes
2answers
110 views
How to structure an application which reads UPC barcodes
I have no previous experience on creating a project for a seller which will use barcode reader. I am trying to put together a small project but I cannot figure out how the pieces should glue together.
...
1
vote
1answer
69 views
Team Parallel development in ASP.NET
I am developing an application written in ASP.NET (C#) which heavily use on Master Page and Session.
As there will be enhancement in the same web application, and will be done by my teammate.
is ...