What Does Type-Safe Mean?/ What is a Type-Safe Language? (C#)

What does type-safe mean? How could a programming language be type-safe? Can you give an example to type-safe and non-type-safe languages? You will get the answers for all these questions in this post. Consider this simple javascript code below: var

Read More What Does Type-Safe Mean?/ What is a Type-Safe Language? (C#)

The calling thread cannot access this object because a different thread owns it

If you see this error message you are probably playing around with C# multithreading (WPF may be?) and doing something wrong. But don't worry it shouldn't be that hard to solve this problem. I encountered the same problem in a WPF project

Read More The calling thread cannot access this object because a different thread owns it

What are Static Classes and Static Methods? (C# Programming)

A static class is basically the same as a non-static class, but there is one difference: a static class cannot be instantiated. In other words, you cannot use the new keyword to create a variable of the class type. Because there is

Read More What are Static Classes and Static Methods? (C# Programming)

DateTime Format Problem with Turkish Locale dd.MM.yyyy

Task: Get a Date string and convert it to DateTime object in the form of “dd.MM.yyyy”. Problem: No matter what you do, you can not change the default yyyy/dd/MM (or yyyy/MM/dd) format. Yes, this was my case while I was

Read More DateTime Format Problem with Turkish Locale dd.MM.yyyy