Tagged Questions

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
9 views

Adding multiple byte arrays in c# [migrated]

I'm working on a legacy system that uses byte arrays for permission levels. Example: 00 00 00 00 00 00 00 01 means they have "Full Control" 00 00 00 00 00 00 00 02 means they have "Add Control" 00 00 ...
2
votes
6answers
133 views

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

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 ...
10
votes
4answers
601 views

Use of keyword “Using” in C# interface

When I'm using C# to write some code and I define an interface using Visual Studio 2010, it always includes a number of "using" statements (as shown in the example) using System; using ...
-3
votes
0answers
12 views

How do I get the ports opened by a Windows Service? [migrated]

I want to get the list of window services and their ports in C#. I'm able to get all window services by using ServiceController but I'm unable to get ports of these services.
28
votes
8answers
1k views

Is C# development effectively inseparable from the IDE you use?

I'm a Python programmer learning C# who is trying to stop worrying and just love C# for what it is, rather than constantly comparing it back to Python. I'm caught up on one point: the lack of ...
-1
votes
0answers
19 views

How to set cursor position in gtk TextView (mono c#) [closed]

In my gtk# text editing app when file opened i.e textview.Buffer.Text, set to file content, the cursor is placed at the end of buffer while textview view remains scroled on top, could I set somehow ...
-6
votes
1answer
97 views

Entity framework architecture [closed]

I want to make a entity framework application in Winforms C#. I'm new to entity framework, and don't know how to make the architecture. I want to have the model in a class library, and a GUI layer, ...
3
votes
2answers
144 views

DI and hypothetical readonly setters in C#

Sometimes I would like to declare a property like this: public string Name { get; readonly set; } I am wondering if anyone sees a reason why such a syntax shouldn't exist. I believe that because it ...
3
votes
1answer
115 views

How to manage long running background threads and report progress with DDD

Title says most of it. I have found surprising little information about this. I have a long running operation of which the user wants to see the progress (as in, item x of y processed). I also need to ...
-5
votes
0answers
48 views

Any sites or resources to learn C# from? [closed]

Just started picking up C#, and I'd love it if anyone could recommend me any site or such with practical tutorials?
-2
votes
0answers
64 views

More complex learning source for C# .NET [closed]

By complex I don't mean more difficult but including a larger area of possibilities cover. I've started a few years ago with PHP and the transition from learning the syntax of the language and the ...
3
votes
0answers
57 views

How to choose between using a Domain Event, or letting the application layer orchestrate everything

I'm setting my first steps into domain driven design, bought the blue book and all, and I find myself seeing three ways to implement a certain solution. For the record: I'm not using CQRS or Event ...
-2
votes
0answers
33 views

C# ComboBox SelectedItem [closed]

I have a combobox with a list of values. I would like the selected index to be a value from the database. I first create the combobox, fill it with values from a dataset like this: ComboBox cmb_Relay ...
3
votes
3answers
86 views

Naming Convention for Dedicated Thread Locking objects

A relatively minor question, but I haven't been able to find official documentation or even blog opinion/discussions on it. Simply put: when I have a private object whose sole purpose is to serve for ...
6
votes
2answers
96 views

How far should an entity take care of its properties values by itself?

Let's consider the following example of a class, which is an entity that I'm using through Entity Framework. - InvoiceHeader - BilledAmount (property, decimal) - PaidAmount (property, ...

1 2 3 4 5 68
15 30 50 per page