I'm using JavaScriptSerializer to serialize some entity objects.
The problem is, many of the public properties contain null or default values. Is there any way to make JavaScriptSerializer exclude properties with null or default values?
I would like the resulting JSON to be less verbose.
...
I'm a fairly experienced (about 4 years) asp.net developer.
I failed the MeasureUp practice test for Microsoft certification exam 70-536: TS: Microsoft .NET Framework 2.0 — Application Development Foundation. (That's the actual MeasureUp practice test purchased from their website - I've heard there is a different version of it on the C...
What's a good source control repository that meets these conditions?
Free
Direct integration with Visual Studio, as VSS/TFS do
Server-based
Supports multiple applications
Supports branching & merging
Has a license suitable for one user
...
Can someone explain the differences between the MVVM Foundation and the MVVM Toolkit? They seem to have a lot in common.
...
with some performance counters they are compriseed of 2 counters the actual counter and a "base" counter used for calculations.
The question is, in .net, is there any easy way to get the linked base counter. from the web I've seen them linked by name but that only works sometimes.
Any ideas appreciated.
...
I have simple text file, and i have to print it using WPF. How can i print this file with specified printer setting(like margin, print on both side).
...
How can I change the border color of group box control in windows application
...
What steps are required to localise a WPF application so that right to left languages are displayed correctly?
...
I have Written a webservice with VS2008
after I had Added Reference to that service in VS2003,I encountered a problem calling methods which return nullable values such as int?
if I fill that feild with a value,the problem solves.
Is There any other way to solve this problem?
Some more Information
Please Look at these extract from my ow...
In what order is the Socket.BeginReceive/EndReceive functions called?
For instance, I call BeginReceive twice, once to get the message length and the second time to get the message itself. Now the scenario is like that, for every message I send, I start waiting for its completion (actually acknowledgment of the message sent, also I wait...
Hello everyone,
I am using VSTS 2008 + C# + .Net 3.0. I want to enumerate all files in a directory by creation time, i.e. files created more recently will be enumarate at first, files created for a long time (older) will be enumerated at last. Any ideas how to implment this?
thanks in advance,
George
...
Hello everyone,
I am using VSTS 2008 + C# + .Net 3.0. I want to find the most efficient way to calculate the MD5 result for the whole content of a txt file.
What is the most efficient solution?
thanks in advance,
George
...
I want to create unit tests for one of my project's classes but I'm getting a following error when I right click on the class source code and choose Create Unit Tests button:
The following error was encountered while reading module 'Microsoft.Office.Tools.Common.v9.0': Could not resolve type reference: [office]Microsoft.Office.Core.I...
Why doesn't this.Hide() work in Load event handler of a Form? I would liek to hide the form because this is supposed to be an app that displays only icon in system tray. How can I do it?
...
Hello,
I added SimpleOpenglControl Component Of Tao Opengl Framework on windows form application.
I drew 3d object and could display it on SimpleOpenglControl.But I want to rotate it using mouse.
It will rotate according to the mouse move on 3d object .And object's rotate velocity and direction depend on mouse move velocity.
Unfortu...
Hello, I am working on a project which need to use .NET Transaction with DB2 server on window server 2003.
The point is when I tried to send the transaction from Vista platform to DB2 server, it show some error like this:
SQL0998N Error occurred during transaction or heuristic processing. Reason Code = "16". Subcode = "2-80004005"
...
SQL Server Management studio generated value of datatype "Date" into following string:
CAST(0x38320B00 AS Date).
I need to convert it into classical .NET datetime (i have the string in c# app). I know that if it were SQL Server DateTime it would be 2 times longer Hex number and first part would specify number of days from 1.1.1900, an...
A many-to-many relationship has to methods to remove items: Delete and Remove. What is the difference between these two?
...
I want open source assemblies with interfaces (but no implementations) of common things, such as logging, IoC/DI, etcetera. If this exists, it would be easier to mix and match bits and pieces of things together without having to write too much glue code.
Example: If this existed, I would be able to for example create a asp.net mvc appli...
Which is the better practice and why?
bool IsTodayMonday { get { return DateTime.Now.DayOfWeek == DayOfWeek.Monday; } }
Or
bool IsTodayMonday()
{
return DateTime.Now.DayOfWeek == DayOfWeek.Monday;
}
...