Object.ToString() Using Invariant Culture

by Weifen Luo (DevZest) 17. September 2009 23:29
Today, an Italian user of WPF Docking reported a bug in BrowserDockSample: the saved floating window position is not correctly loaded - it seems the loaded floating window is displayed at far right bottom of the screen. Taking the saved XAML text under the Italian culture: <DockLayout xmlns... [More]

Tags:

.Net

Local Machine Copy Protected Licensing

by Weifen Luo (DevZest) 14. September 2009 11:55
There are many ways to enforce the software licensing for local machine copy protection: CPU ID, network card mac address, hard disk serial number, etc. But they all have some pitfalls: the first is hard to get these information reliably; the second is these information is the privacy of the users a... [More]

Tags: , ,

.Net

Debug.Assert vs. Exception

by Weifen Luo (DevZest) 2. September 2009 17:40
In .Net programming, you can check for a condition and outputs the call stack if the condition is false: // Test that the index value is valid. Debug.Assert(index > -1); Or throw an exception under a certain condition: // Test that the index value is valid. if (index <= -1) throw n... [More]

Tags:

.Net

Copyright DevZest, 2008 - 2017