vadmyst.blogspot.com
Software Development: February 2012
http://vadmyst.blogspot.com/2012_02_01_archive.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Friday, February 03, 2012. Fast Conversion of Hex String Into Decimal Number. Today's post will be about performance. More specifically about converting hex string into decimal number faster than using built-in .NET Framework methods. 1) Convert.ToInt32(hexNumberString, 16). 2) int.Parse(hexNumber, NumberStyles.HexNumber);. Static sbyte[] unhex table =. DecValue *= 16;.
vadmyst.blogspot.com
Software Development: Determining .NET Assembly Target Platform
http://vadmyst.blogspot.com/2011/10/determining-net-assembly-target.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Friday, October 14, 2011. Determining .NET Assembly Target Platform. NET assembly can be built with different platform targets: any CPU, x86 or x64. But if all you got is already built binary file: how to determine what is exe or dll target platform? Assembly manifest can be viewed using special tools, e.g. IL Disassembler. Command: " corflags CpuTypeSample x86.exe.
vadmyst.blogspot.com
Software Development: December 2009
http://vadmyst.blogspot.com/2009_12_01_archive.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Thursday, December 17, 2009. Mono: C# compiler bug with property inheritance. The bug appeared quite unexpectedly. In Visual Studio code sample below compiled fine. But doing the same with Mono. C# compiler results in error: Compiler Error CS0546. Derived2.Accessor.set': cannot override because 'Base.Accessor' does not have an overridable set accessor. Declare @d1 date...
vadmyst.blogspot.com
Software Development: Refactoring code with lambda expressions
http://vadmyst.blogspot.com/2010/04/refactoring-code-with-lambda.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Friday, April 16, 2010. Refactoring code with lambda expressions. Without much ado lets go straight to the code that needs to be refactored:. The question is how we can bring prefix and suffix code from the example above in one place (method) without changing code logic. The goal is to have these two methods rewritten like this:. There are several ways how to do that:.
vadmyst.blogspot.com
Software Development: Mono: C# compiler bug with property inheritance
http://vadmyst.blogspot.com/2009/12/mono-c-compiler-bug-with-property.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Thursday, December 17, 2009. Mono: C# compiler bug with property inheritance. The bug appeared quite unexpectedly. In Visual Studio code sample below compiled fine. But doing the same with Mono. C# compiler results in error: Compiler Error CS0546. Derived2.Accessor.set': cannot override because 'Base.Accessor' does not have an overridable set accessor. We also purvey t...
vadmyst.blogspot.com
Software Development: The Big Bang Theory sitcom scientific background
http://vadmyst.blogspot.com/2010/04/big-bang-theory-sitcom-scientific.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Wednesday, April 28, 2010. The Big Bang Theory sitcom scientific background. Usually I do not write about TV. But the serial in the subject is one of my favorite. Recently I've found blog of the guy. Who does scientific background for that sitcom. There are a lot of interesting scientific facts on that blog in the context of the TV show. Mar 15, 2011, 3:53:00 PM.
vadmyst.blogspot.com
Software Development: Type inference in generic methods
http://vadmyst.blogspot.com/2010/07/type-inference-in-generic-methods.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Thursday, July 08, 2010. Type inference in generic methods. Did you know that in .NET generic methods have type inference. It can also be named as implicit typing. Let's see how type inference looks in code. In the sample below there is a class with generic methods. Here's the traditional way of using the above defined methods:. Also type inference cannot "guess" the r...
vadmyst.blogspot.com
Software Development: November 2009
http://vadmyst.blogspot.com/2009_11_01_archive.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Saturday, November 21, 2009. String Compare Performance in D. A while ago I was measuring performance of string comparison in .NET. Today I played with string type in D programming language. And decided to make similar tests. D is relatively new language with some good perspectives (by the way Andrei Alexandrescu. Is engaged in D development). Not so long ago I have en...
vadmyst.blogspot.com
Software Development: June 2010
http://vadmyst.blogspot.com/2010_06_01_archive.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Friday, June 18, 2010. Thread Safe Collection Iteration Techniques. Under multithreaded environment every operation should be tested and analyzed from the viewpoint of thread-safety. That is check every data structure what will happen if it is accessed/changed from multiple threads. You may think - do the iteration under a lock. But it is not that simple. Approach #2 u...
vadmyst.blogspot.com
Software Development: AesManaged class Key and KeySize properties issue
http://vadmyst.blogspot.com/2010/06/aesmanaged-issue.html
Blog about software development, algorithms, network protocols, .NET, programming languages, tips and tricks, coding techniques and more. Tuesday, June 15, 2010. AesManaged class Key and KeySize properties issue. Today when working with AesManaged. Class I've encountered very strange behavior. If you have a code like this - you're in trouble:. AesManaged aes = new AesManaged(); aes.Key = key; aes.KeySize = key.Length; / the problem. The problem with this code is setting KeySize. When you set KeySize.