C# is a multiparadigm, managed, garbage-collected object-oriented programming language created by Microsoft in parallel with the .NET platform

learn more… | top users | synonyms

-2
votes
0answers
15 views

Moving old desktop application to a robust platform

Several years ago I wrote a desktop application, a small accounting system, in Delphi 7, that is in user in a medium-sized company. It currently works by connecting directly to the database. Each user ...
-9
votes
0answers
38 views

Exam 483 Programming in C# Help [on hold]

I am writing my 483 on the 23 of October this Thursday. Been busy with most of the material but could use a few pointers if you've written it or know what to do in this situation.
-1
votes
0answers
31 views

What are data validation best practices? [on hold]

I want to create a data validation class in my application and the data validation class' sole purpose is to check user input before I perform calculations on the user input; what is the best way to ...
0
votes
1answer
135 views

Organizing Business and Presentation entities

Background I am developing a WPF project. This is the basic structure: User Interface (WPF Project); Interfaces (class library, contains all the interfaces and the entities used by the ...
-5
votes
0answers
77 views

How can an experienced programmer learn C# fast? [on hold]

I'm an experienced programmer and do most of my day-to-day coding in Python, though I've also used C, C++, and Perl professionally, and am pretty familiar with JavaScript as well. I'm wondering if ...
-1
votes
0answers
20 views

MQ Connection Pooling [on hold]

This site states that connection pooling in MQ was not possible in 2008. Is it possible with later versions? If not is there a simple example/method to utilize MQ from a multi threaded application?
1
vote
2answers
179 views

Decide the type of an object during runtime

I try to implement a PriorityQueue with C#: public class PriorityQueue<T> : Heap<T> where T : IComparable<T> { ... } The Heap is abstract. I have MinHeap and MaxHeap that are ...
2
votes
1answer
41 views

Design Question - System Integration

Guidance on good application architecture / design is not in short supply however most of the examples focus on some business object, like Customer and its behaviour and persistence. There is little ...
0
votes
1answer
254 views

Application use on website

Is there a good way to run a C# application on clientside in lieu of JavaScript? I have done some front end work with JavaScript and backend C# for web developing at an old job, but I am interested in ...
-4
votes
0answers
20 views

c# code to take names from exelsheet and print those name on certificate where blank space is given [on hold]

I want to take data from excel sheet and print it on certificates which already have printed. I just need to put them in printer and name of person should get printed on it at appropriate space on it. ...
-4
votes
0answers
24 views

Csharp multiple button presses [on hold]

I have a button in a program and I want it to where when I click the button it goes to page 2 but if I click it again it goes to page 3 kinda like a book.
1
vote
1answer
63 views

Tell, Don't Ask and Immutability in a non-directional network

I'm working on a small project in which I'm attempting to practice relatively strict adherence to two ideas: Tell, don't ask (TDA) Immutability The main concept in this project is a Map (as in a ...
1
vote
1answer
97 views

Implementing a tricky REST API with ASP.NET Web API

I'm trying to build a RESTful API using ASP.NET Web API for a game, and here are the methods I have so far: /games GET /games/:id GET /games POST /games PUT /games DELETE /users GET /users/:id GET ...
7
votes
3answers
517 views

In TDD should I have to write Test first or Interface first?

I am learning TDD using c#, as far as I know test should drive the development, that is first write a failing test after write the bare minimum code to pass the test then do refactoring. But it is ...
0
votes
0answers
23 views

Strategy for creating a websocket relay?

I own a Raspberry Pi and would like to use it as some sort of websocket relay, so that all people who visit a specific webpage would be able to communicate with each other. The key thing about this is ...
0
votes
1answer
105 views

How can I mock this architecture?

This is not a very general question, so it may not exactly be appropriate here, but I could sure use a suggestion if you have one: I have an object containing a dictionary keyed off of an enum, ...
-3
votes
0answers
16 views

send generic list from server to client and then client to server [migrated]

I have a asp.net page, list is generated after post back. List needs to be first updated at client side and then it needs to be updated at server side before showing results on the page. I don't ...
0
votes
2answers
88 views

Software desing suggestion - In case we need to set a property of a class within a scope and dispose it when the parent scopes completes [on hold]

This is a software design related question. Lets say we have the following class: Public MyClassA { private int x; Private Student _student; Public Student { get ...
2
votes
5answers
320 views

Relative encapsulation design

Let's say I am doing a 2D application with the following design: There is the Level object that manages the world, and there are world objects which are entities inside the Level object. A world ...
2
votes
1answer
140 views

Should you reuse an Entity Framework EDMX between multiple solutions?

We currently have 1 giant EDMX for our corporate database. It, along with all of the generated POCOs, are in a separate project (we'll call it the EDMX project) which we pull in to any solution that ...
-5
votes
0answers
26 views

What sort of thing to avoid and make a habit as Enterprise Software Engineer [on hold]

Now a days , its not writing code and change frameworks and language matter the most.most. Of course , in some situation matter,but you know.Most of the time ,clients need some one with "fast coding ...
0
votes
2answers
186 views

Organizing solution / project structure and classes for Line of Business Application (LOB)

The question how-do-you-organize-your-projects already has a few good answers. I would like to get a better understanding about this suggested structure: MyApp.Core MyApp.Model MyApp.Presenter ...
2
votes
1answer
153 views

In a generic method, what exception should I throw when a type parameter is unacceptable?

When the value of a normal parameter is unacceptable (and the requirements can't be checked completely at compile time), we check at runtime and throw an ArgumentException if the check fails. When ...
-2
votes
0answers
45 views

Can model driven development coexist with test driven development?

I am currently learning Test driven development in c#, in order to get the balls rolling I have created a c# project in visual studio to design TIC TAC TOE with some abstraction. For that I need a ...
3
votes
1answer
117 views

Implicit Conversion Operators for Value Types in C#

I’ve come across this blog article: Implicit Conversion Operators are Bad. The article discourages the use of implicit conversion with reference types. The article describes problems caused by ...
4
votes
2answers
253 views

Is it better to create thread safe subclasses or make the main class thread safe?

Say we have a class that is frequently used in a single-thread context: public class Foo { public List<Bar> Data; public virtual void ChangeData() { for(var i =0; i < ...
-3
votes
0answers
55 views

WPF Certification - worth it? [closed]

I am a C# developer with 9 years experience in investment banking. During that time I have worked largely on server side and some WinForms. Now that I am looking for a new job, I find that most C# ...
-1
votes
1answer
68 views

SQLDatabase: Read a lot of data at once and process in memory or read the data when I need it?

I'm not sure how to approach this problem. I require a big chunk of data records from the SQL server. This chunk is based on variables, so I don't know before what records I need. I need to do a large ...
-2
votes
0answers
37 views

How to transfer data back and forth between a client and a server on a network [closed]

I have the mandate of transferring data (~3-10mb) back and forth between a client and a server. I ideally need this to work in Windows and Linux. (I would like to stick to c# but can easily ...
0
votes
1answer
109 views

How are the tiles in WORDAMENT organized?

I'm trying to create a word game, just like WORDAMENT, in my spare time. In order to present a new round, I need to create a board with 16 letters organized in a 4*4 grid. Currently, I'm generating ...
0
votes
1answer
413 views

Tree View Children condition indicator on topmost un-expanded parent

I am using a tree view in c# and i am creating custom icons for the nodes. Let say this is my hierarchy with a node that satisfies a certain condition: Root1 |_Ax |_Bx1 |_Bx2 |_Cx1 ...
-2
votes
0answers
29 views

Interop class instance method with optional parameters in C# [closed]

I have an instance of a COM-interop class that has a method with a signature like bool InteropClass.Method(params object[] Values) And I thought I could call it like ...
2
votes
0answers
68 views

How to efficiently implement this background processing chain?

I am working on an audio software that uses The EchoNest web service to identify and retrieve metadata about audio songs and I would like to have some advice on implementing a background processing ...
-3
votes
1answer
63 views

dll of c++ project to be used in c#-project [closed]

I would like to create a dll so that I could use an engine written in c++ for a c#-project. I have tried to google for answers without any perfect results. Just a hint on what to search for would be ...
0
votes
2answers
220 views

What's the advantage of auto-property initializers without primary constructors?

In this chart about the features that are in or out of the next version of Roslyn (specifically, for C#), primary constructors are out, but auto-property initializers are in. The best use case I've ...
4
votes
8answers
31k views

What is the best way to create HTML in C# code? [closed]

I have a belief that markup should remain in mark-up and not in the code behind. I've come to a situation where I think it is acceptable to build the HTML in the code behind. I'd like to have some ...
1
vote
2answers
96 views

Naming conventions DAL, BAL, and UI Layer [closed]

I am developing a typical Web Application with the following layers UI Layer (MVC) Business Logic Layer (BAL) Data Access Layer (DAL) Each layer has its own DTO object including the BAL and DAL. ...
0
votes
2answers
461 views

How I could update a DB table using a POCO class bound in a DataGridView

I try to explain better using an example: I create the class Product with attibutes like that: private string _ProductCode = ""; [DisplayName("ProductCode")] public String ProductCode { get { ...
4
votes
1answer
372 views

avoiding multiple calls to SQL while being modular

I have a BusinessLayer.dll which calls DataAccessLayer.dll which ultimately makes the tcp connection to the SQL server. Each business layer method has a corresponding method in the data access layer ...
0
votes
1answer
42 views

Custom mobile app and custom server app [duplicate]

I have this little bit simple and general question. Let's say I build an android app which requires an online server to communicate with. The thing is that I want to make the communication on my own ( ...
2
votes
1answer
86 views

Pattern to gain abstraction over assembly with no abstraction

I'm interacting with a large code base (in a single assembly) written by another department (let's call it BusinessAssembly). Precious few of the objects we need to use in that assembly use ...
0
votes
1answer
88 views

Best practise to versioning Web Service WCF

I've a web service SOAP developed with WCF, there is a best practise to versioning it? when I change the contract I don't want to update all the client's referiments but I want simply publish a new ...
1
vote
3answers
321 views

Gathering IP address and workstation information; does it belong in a state class?

I'm writing an enterprisey utility that collects exception information and writes to the Windows Event Log, sends an email, etc. This utility class will be used by all applications in the corporation: ...
0
votes
0answers
7 views

Need Unity help [migrated]

Before I start I should mention I am a unity noob. So I have been following a pong tutorial,but I have a problem. The rackets are not moving when you press the arrow. If you know how to fix this ...
0
votes
1answer
59 views

Folder structure or database structure for creating/editing 'files'?

As a hobby experiment I am creating a on-line tool for creating web sites with the ability to create custom HTML and CSS using a template engine for safe-use of functionality. Now I am in the ...
0
votes
1answer
140 views

I/O bound or CPU-bound

I have a telephony application, there is a windows service(third party product) running on a remote server. The application runs against the server. To connect the server, we have the code. public ...
0
votes
1answer
118 views

Using Statement lambda in exception handling

Following is a code snippet from MVP Win Forms application and this explanation would be helpful when answering the questions. My DAL doesn't handle exceptions and it will be propagated up to the ...
1
vote
1answer
173 views

Exceptions: What to handle, what to throw

I have a custom configuration reader which performs various functions on top of .NET's CloudConfigurationManager and ConfigurationManager implementations, such as caching, type conversion, etc. The ...
3
votes
2answers
159 views

IoC as service locator

I have been wondering for quite some time on some issues while using dependency injection: In a layered application, I normally inject repositories into the application service using constructor ...
4
votes
2answers
389 views

Would this be a proper use of threading?

After reading various MSDN articles, tutorials, and posts on here I came up with a design for a windows service that I wanted to make sure my threading strategy is proper and won't lead to memory, ...