Net 2.0 Framework Service Pack 2 Issue

I’m trying to install .Net 2.0 Framework Service Pack 2 on a Win 2k8 server which currently has .Net Framework 2.0 SP1, .Net Framework 3.0 SP 2 and .Net Framework 3.5 SP1 installed. The reason for installing SP2 is that I need to install a hotfix for this issue (hanselman.com/blog/…). When I attempt to install … Read more

Windows .NET API / Windows 7 / Bluetooth communication with Intel Curie Arduino / Genuino 101

Microsoft Bluetooth stack on Windows 7 does not support BLE. You have to use third party Bluetooth drivers in this case. BlueSoleil works good. On Windows 8 and above you can use Microsoft Bluetooth stack to work with BLE devices. However each Bluetooth drivers have own API. I am not sure about free 32feet (if it support BLE and … Read more

Convert Enum to String

As of C#6 the best way to get the name of an enum is the new nameof operator: This works at compile time, with the enum being replaced by the string in the compiled result, which in turn means this is the fastest way possible. Any use of enum names does interfere with code obfuscation, if you … Read more

Where/how can I download (and install) the Microsoft.Jet.OLEDB.4.0 for Windows 8, 64 bit?

I’ve got a 32 bit .net 2.0 app that uses the Jet OLEDB 4.0. It runs fin on Windows 8 32 bit, but not on the 64 bit. on 64 bit I’m getting an error: ‘Microsoft.Jet.OLEDB.4.0’ provider is not registered on the local machine. at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) I am aware that you can’t … Read more

Difference between Delphi and Delphi.NET

Delphi is the language and IDE to create native Windows, Mac and iOS applications. Delphi.NET is a deprecated version to generate .NET applications. The current alternative to create .NET applications using a Object Pascal syntax is use Embarcadero Prism.

What is the purpose of nameof?

What about cases where you want to reuse the name of a property, for example when throwing exception based on a property name, or handling a PropertyChanged event. There are numerous cases where you would want to have the name of the property. Take this example: In the first case, renaming SomeProperty will cause a compilation error if you … Read more

C# Set collection?

Try HashSet: The HashSet(Of T) class provides high-performance set operations. A set is a collection that contains no duplicate elements, and whose elements are in no particular order… The capacity of a HashSet(Of T) object is the number of elements that the object can hold. A HashSet(Of T) object’s capacity automatically increases as elements are added to the object. … Read more

What is the difference between int, Int16, Int32 and Int64?

Each type of integer has a different range of storage capacity As stated by James Sutherland in his answer: int and Int32 are indeed synonymous; int will be a little more familiar looking, Int32 makes the 32-bitness more explicit to those reading your code. I would be inclined to use int where I just need ‘an integer’, Int32 where the size is important (cryptographic code, … Read more