I have a method that receives messages from a queue of msmq.
I have 6 different queues in msmq and i d like a single generic method that would receive the messages. THis work, but i need to write 6 methods for each queue. I d like to make it more generic.
public List<QueMessage> getMessagesFromObj1Queue()
{
List<QueMessage> message...
I have one solution with a .NET 4.0 project (C#) that produces a delayed signed dll, that I dotfuscate and sign.
EDIT: This is how I version the dll:
[assembly: AssemblyVersion("0.7.0.*")]
[assembly: AssemblyFileVersion("0.7.0.0")]
I have another solution with a .NET 4.0 project (C++/CLI) that references the signed dll and produces a...
Hello everyone,
I am using Silverlight 3.0 + C# + VSTS 2008 + .Net 3.5. I am learning from the following tutorial about TranslateTransform.
http://vbcity.com/blogs/canoz/archive/2010/05/02/beginning-silverlight-translatetransform.aspx
My question is how RenderTransformOrigin works together with TranslateTransform to achieve visual eff...
Hi,
I'm in dilema whether to use windows service for my application or not, below is the description about my application please could anyone suggest what is the best approach for my requirement, if possible with pros and cons as well.
There is Application "A" which is a closed application and any data I need from that application is e...
For downloading and installing .NET/dll, all I need is copying the dll to a specific directory, and let the .NET know about it. Is this correct?
I use mono, so with mono, I set the MONO_PATH to include the directory. And, it looks OK.
Here are my questions.
With some libraries, not only dll file, but also xml file is provided. For e...
I am having a problem with Visual Studio 2010 crashing when opening a WPF user control on one computer. Whenever I open any WPF user control or try to create a new WPF user control in our product solution (any project in the solution), Visual Studio crashes.
I have uninstalled or disabled all Visual Studio add-ins (such as ReSharper and...
Hello,
I am still learning .NET framework and I want to implement multi-tier application just for practice.
I was wondering what is the best way to achieve that.
My goal is to make application for hospitals.
What is my question?
Is it good idea to implement multithreaded server that accepts client requests via sockets.
Worker threads...
I would like to ignore a specific Type of exception in a group of statements; without having to put empty Try..Catches around them.
try{ o1.Update(); } catch (Exceptions.NoChangeMade ex) {}
try{ o2.Update(); } catch (Exceptions.NoChangeMade ex) {}
try{ o3.Update(); } catch (Exceptions.NoChangeMade ex) {}
I would like either a On Error...
I need to look up the ASN and Netblock owner for a specific IP in a .NET server app.
Is this info in the WhoIs data?
Thanks!
...
Are there any recommendations on when to use Application settings (not per user settings) vs. .config file <appsettings>?
Update
Looking to understand some of the finer and important differences because they're both effectively key/value stores.
For example, I know modifying appsettings in web.config will recycle the web application.
...
DynamicQuery is a sample project that allows 'Dynamic' LINQ strings to be executed at run-time. I want to use this in a project of mine.
I've created a new Window Forms Application in VB.Net; and add the existing item - 'Dynamic.vb' (taken from the DynamicQuery example).
Once I do that, code that was previous fine, is now marked as in...
In coderush I can extract a method based on my code.
Is there a way to extract an entire class?
mycode = 5
turns into
myclass= new myclass;
mycode = mymethod()
myclass
{
methods()
{
return mycode=5
}
}
...
Hi
As far as I understand the Client Server Scenario (aka Offline Scenario) it is supposed to use with a SQL Server as Server and a SQL Server Compact as Client.
I have to implement a synchronization between a master and several nodes where the nodes communicate and synchronize with the master but not with each other. Master and Nodes a...
I've got some data access layer code calls a stored proc and returns scalar values of various datatypes. The syntax is ExecuteDecimal, ExecuteString, etc. I want it to be Execute<string> or Execute<decimal>
I try this implementation and I can't compile, unless I'm doing casting using "(T) value", if I try to check the type and call a ...
The XML schema I'm working with has specific character lengths for strings. So I may have a string that's like:
"Jim & Mary"
which is 10 chars in C# but when it is written to xml it becomes:
"Jim & Mary"
If an XML schema said the string could only be a max of 10 chars. Would this string pass?
If not, how can I test in C# for th...
I'm trying to make a WPF user control that includes two group boxes and two listViews in each group box. Here is the XAML code for the user control:
<UserControl x:Class="TestGroupControl.TestGroupControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2...
I'm a bit late to the game and have decided to spend some spare time learning LINQ. As an exercise, I'm going to rewrite a WebForms app in MVC 2 (which is also new to me). I managed to find a few topics regarding LINQ here (http://stackoverflow.com/questions/16322/learning-about-linq, http://stackoverflow.com/questions/8050/beginners-gui...
I have been investigating how to decouple my DomainServices from their datasource so I can test them in unit tests. I'm starting to think fully decoupling them is not possible.
There is a decent amount of info out there, such as this question and this blog post. The blog post in particular gets you really far into mocking ObjectContext....
in the .net environment (C# language), how can I go about writing an application that can monitor when a process is created within the system, and when that process spawns other processes?
...
The start Windows shell command (in cmd.exe) appears to be able to start a process with a chosen processor affinity, rather than starting the process then setting the chosen processor affinity some (small) period of time after it has started.
start /affinity 2 something.exe
Is there a way to do the same from within a .NET application ...