Tagged Questions
C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
0
votes
0answers
9 views
C# WPF non-static commands implementation possible?
SHORT QUESTION:
Is there a way to create "Instance only" ICommand implementation for Custom Control, WITHOUT static classes "behind"?
...
EXTENDED :-)
I am trying to update previously created ...
0
votes
0answers
10 views
Linq Union/UnionAll/Concat
I'm trying to convert a simple piece of Math to Linq.
I want to bundle together the prime factors for several numbers into one collection.
Consider the following integers.
8 = 2 * 2 * 2
12 = 2 * 2 * ...
0
votes
1answer
25 views
Handling SQL data in C#
namespace iss_farmacie_spitali
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object ...
0
votes
0answers
5 views
DataGridView in a Panel Scroll Resetting
My problem is exactly the same as:
Problem with DataGridView and scroll position
Every time I edit a cell in a DataGridView the parent panel resets its scroll bars. This also happens on when the ...
0
votes
0answers
8 views
Can Ngen be used for code security?
Can Ngen be used as the perfect Code Obfuscator, protecting your .NET CIL from ever reaching the client?
Can I run Ngen on my dev PC and ship the exe to every client that has a compatible .NET ...
2
votes
2answers
17 views
What does Process.Dispose() actually do?
In C# class Process inherits from class Component that implements IDisposable and so I can call Dispose() on any Process object. Do I really have to? How do I know if I really have to?
Suppose I have ...
-9
votes
1answer
46 views
How to Write C# code to crash the CLR? [closed]
In one of my past interviews , someone asked me to write a code to crash the CLR.Please give me one example.
0
votes
0answers
4 views
How to properly handle incoming protobuf message with a NetworkStream?
Using TCPClient's NetworkStream and protobuf-net I send and receive protobuf messages via TCP. Receiving is done with the following method that runs in an own thread:
private void HandleClientComm()
...
0
votes
0answers
30 views
Can a class be removed by code
I have a query whether there is any sensible (pinch of salt needed here) mechanism to 'remove' a class from my codebase.
I'm not trying to delete a .cs file here, I'm trying to kind of 'null out' a ...
1
vote
1answer
24 views
How to write mouse event for form button?
How to write mouse enter event for minimize & maximize button of form in c#? When the mouse enters the minimize and maximize button, I do want to fire some event. How can I do that?
Please help.
...
0
votes
2answers
15 views
How to check if columnname = 'xyz"' skip adding to xml in the for loop using C# console Application
I reading the all xml data from db I want skip some columns how to skip some columns while reading in for loop
Is there any way possible to skip
Reading from row node=1 using XMLElement
foreach ...
0
votes
0answers
7 views
How to change trust center options at outlook add-in program c#?
I am programming an add-in program for outlook2007 using visual studio 2010 and C#,
My add-in should changes some of trust center options, any help?
0
votes
2answers
21 views
force user to select combo option before processing to second form
Inside my MainForm there is many buttons and one combo box.
Before processing action when user select any button I want to force him to first select option from combo box.
For example combobox is ...
0
votes
1answer
17 views
Ask about pointer and access memory in C#
I have a problem but i don't understand about it, i don't know root cause of problem.
I hame a small program and when run it on win 7 (64 bits) access violation exception occurs. This exception does ...
0
votes
3answers
25 views
How to do a generic sort in .NET 2.0
I have this wonderful assignment in .NET 2.0 (I miss LINQ - A LOT), where I have a list of objects. I get these objects from an API, so I cannot add any interfaces.
I need to sort them on stuff like:
...