Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 39336

C# is a multi-paradigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform. Use this tag for questions related to C#. In case a specific version of the framework is used, you could also include that tag; for instance .net-2.0.

2 votes

Logging without Code Bloat

As others here have pointed out logging carries the same burden as comments - too much or too little does more harm than good. One practical approach to logging is to put a log line in most key branc …
Sten Petrov's user avatar
5 votes

A simple encryption scheme 2.0

Too fancy, too hard to read. The whole code can be compressed into something like BCrypt.Net.BCrypt.HashPassword(salt+password).ToArray() Take a look at how to use this function here: https://jasonwa …
Sten Petrov's user avatar
4 votes
Accepted

C# WPF Simple Calculator

MVVM pattern This pattern can help you separate business logic and UI in a clear and testable manner. CalculatorState and CalculatorLogic is your model/BL and it can be made shareable. Any calculat …
Sten Petrov's user avatar
0 votes

How to refactor a method with many prameters that sets a bit array

Consider making the settings more readable and strong-typed: public enum Modes{ Mode1 = 1, Mode2 = 2, Mode3 = 4, Mode4 = 8, } public class Config { private Modes configVal; …
Sten Petrov's user avatar
5 votes
Accepted

Matrix reloaded ... or reversed

A few things I don't like: The use of private fields instead of public properties with protected setter. Doing so will make your class more extensible and usable by others: public int RowCount {get; …
Sten Petrov's user avatar