DotNetBlog der DotNet-Blog Alles rund um Microsoft .NET – von  Sascha H. Baumann

MCTS Exam 70-536 – Serialization

1 Star2 Stars3 Stars4 Stars5 Stars (Noch nicht bewertet. Seien Sie der/die Erste !)
Loading ... Loading ...
28. Mai 2010

Its getting hot in here … so, I scheduled my exam – Wish me luck. Till then, I will try to catch-up on my writing cause I think this is a very efficient way for last minute learning – Today’s topic is serialization. Enjoy!

Lies den Rest des Artikels »

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

MCTS Exam 70-536 – COM Interop

1 Star2 Stars3 Stars4 Stars5 Stars (Noch nicht bewertet. Seien Sie der/die Erste !)
Loading ... Loading ...
26. Mai 2010

Hello everyone, big steps this week toward my goal. As usual, I share my notes about this topic with you. Hope it helps you while you are preparing :) Using COM from .NET

Lies den Rest des Artikels »

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

MCTS Exam 70-536 – User Security and Data Security

1 Star2 Stars3 Stars4 Stars5 Stars (Noch nicht bewertet. Seien Sie der/die Erste !)
Loading ... Loading ...
19. Mai 2010

Keep on learning, keep on writing. Today I publish my notes regarding Security in .NET, especially the RBS System.

Lies den Rest des Artikels »

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

C#: Lookup vs. Dictionary

1 Star2 Stars3 Stars4 Stars5 Stars (Noch nicht bewertet. Seien Sie der/die Erste !)
Loading ... Loading ...
16. Februar 2010

The main difference between the Generic Classes Lookup and Dictionary is the uniqueness of the Key. While Dictionarys can only have a Key-Value once,
in Lookup it can occur multiple times.

Declaration is the same.

Lookup<int,string> myLookup = new Lookup<int,string>();

vs.

Dictionary<int,string> myDic = new Dictionary<int,string>();

Furter Reading:

* A nice article about using ToDictionary and ToLookup in Linq can be found @blog.donnfelker.com

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

Die Kultur de ist neutral. Sie kann nicht als die aktuelle Threadkultur festgelegt werden, da sie nicht zum Formatieren und Analysieren verwendet werden kann

1 Star2 Stars3 Stars4 Stars5 Stars (2 Bewetungen, Durchschnitt: 3.50 von 5)
Loading ... Loading ...
14. Januar 2010

I got this message yesterday, while trying to save changes into entity framework. the whole thing was within an ASHX-Handler and I couldn’t figure out , what the deal was.

Now I found a solutions. Just add the following line at the beginning of your method /codeblock and you are fine:

C#

System.Threading.Thread.CurrentThread.CurrentUICulture =
     new System.Globalization.CultureInfo("de-DE");

VB.net

System.Threading.Thread.CurrentThread.CurrentUICulture = _
     New System.Globalization.CultureInfo("de-DE")

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

Extension Methods in VB.Net

1 Star2 Stars3 Stars4 Stars5 Stars (1 Bewetungen, Durchschnitt: 5.00 von 5)
Loading ... Loading ...
12. Januar 2010

My preferred .NET-language is C#, but as a consultant I have to write VB every once in a while. Here is a little introduction, how my beloved
Extension Methods work in VB.Net.

Just two steps:

Step1 – Create a new Module called for example “StringExtensions.vb” and add an Import –Statement for System.Runtime.CompilerServices

Step2 – Write your Extension Method, and put an <Extension()> directive on top. Here is an example:

<Extension()> _
    Public Function AddAbcX(ByVal mystring As String) As String
        Return myString + "ABC"
    End Function

Notice the _ behind the directive. Don’t forget this one.

You notive one additional thing. A while ago I read an article about Extension Methods and got the suggestion to add an X to each methodname.
So, if using intellisense, you will see directly if the method you’re about to call is an Extension Method or a build-in Method. Good idea I think.

Another suggestion – Put the method in the same namespace as the object it belongs to (I said namespace, not file!).

So you have your methods ready when you start using the object.

Cheers

Sascha

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

Happy new Year

1 Star2 Stars3 Stars4 Stars5 Stars (1 Bewetungen, Durchschnitt: 5.00 von 5)
Loading ... Loading ...
31. Dezember 2009

Hello everyone,

I wish all of you a relaxing and successful 2010. See you on the other side :o )

Sascha

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

Silverlight 4 Beta released

1 Star2 Stars3 Stars4 Stars5 Stars (Noch nicht bewertet. Seien Sie der/die Erste !)
Loading ... Loading ...
22. November 2009

As you might now, Microsoft has released the first beta for Silverlight 4 a few days ago. More about this beta, and other Silverlight related topics can be found on my Blog about Silverlight.

Cheers

Sascha

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

Visual Studio 2010 and .NET 4.0 Beta 2 now available for the public

1 Star2 Stars3 Stars4 Stars5 Stars (Noch nicht bewertet. Seien Sie der/die Erste !)
Loading ... Loading ...
21. Oktober 2009

Hello everyone,

I just checked, and found that now everyone can download the new Beta 2 of VS2010 and .NET Framework 4. Have fun trying, I know I will.

Download: Microsofts Visual Studio Page

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

MCTS Exam 70-536 – Generic Collections

1 Star2 Stars3 Stars4 Stars5 Stars (Noch nicht bewertet. Seien Sie der/die Erste !)
Loading ... Loading ...
15. Oktober 2009

Good News everyone !

For the fact that I’m faster in reading then in wring, I made a lot of progress in exam preparation and I’m a bit behind with my notes. Anyway, I share my notes about this topic with you today

General

  • Using Generics can improve performance by reducing the number of cast-operations.
  • Common generic Collections:
    1. List<T>
      Comparable to StringCollection and ArrayList
    2. Dictionary<T,U>
      Comparable to NameValueCollection, StringDictionary,OrderedDictionary,HybridDictionary, ListDictionary and Hashtable
    3. Queue<T>
      Comparable to normal Queue
    4. Stack<T>
      Comparable to normal Stack
    5. SortedList<T, U>
      Comparable to normal SortedList
    6. Collection<T>
      Comparable to CollectionBase
    7. ReadOnlyCollection<T>
      Comparable to ReadOnlyCollectionBase
  • You can Use Generics with any build in and Custom Type
  • Is’nt there more ? Lots of code samples which are not part of my notes :o )
Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

Bad Behavior has blocked 35 access attempts in the last 7 days.