winSharp93

Stories submitted by winSharp93

Casts using “as” (Pitfalls and Best Practices to Prevent Them #5)(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 6 months ago

Well – “as” is faster to type than a “real” cast using two brackets and has the same result. Really? read more...

add a comment |category: |Views: 10

tags: another

(Code-) Contracts as a part of the type system?(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 9 months ago

Contracts? What are Contracts? And why are they reputed to be concerned with the type system? Aren’t they just injected into the executable? Is there maybe “more” behind them? And how should they really be used? Read this post for clarification. read more...

add a comment |category: |Views: 14

tags: another

No Interface without Contract? – Part 6: Object Invariants(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 9 months ago

Object invariants are a kind of postconditions which apply to all members. How to formulate them using Code Contracts? read more...

add a comment |category: |Views: 11

tags: another

Model-View-ViewModel (MVVM) – Part 6: InteractingViewModel(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 9 months ago

How to show ViewModels (Windows) from other ViewModels? This post gives an answer which pays attention to parent/child relations. read more...

add a comment |category: |Views: 185

tags: another

Performance Comparisons (a Helper Class)(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 9 months ago

A little but handy helper class to run (small) performance tests. read more...

add a comment |category: |Views: 16

tags: another

Distinguish between overloaded methods in XML-Comments(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

This posting shows how to distinguish between overloaded methods in XML-Comments. read more...

add a comment |category: |Views: 13

tags: another

Pitfalls and Best Practices to prevent them: Object Finalizers(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

A posting talking about the wrong usage of object finalizers (also known as "destructors"). read more...

add a comment |category: |Views: 5

tags: another

[WPF] Hide the “Window Buttons” (minimize, restore and close)(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

This posting shows a way to hide the "Window Buttons" (or application menu) of a WPF Window. read more...

add a comment |category: |Views: 139

tags: another

No Interface Without Contract? – Using Microsoft Code Contracts(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

Part 5 of the series "No interface without contract?" which introduces Microsoft Code Contracts. This parts helps us getting started using Microsoft Code Contracts. read more...

add a comment |category: |Views: 18

tags: another

No Interface Without Contract? – Writing down Pre- and Postconditions(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

Part 4 of the series "No interface without contract?" which introduces Microsoft Code Contracts. This part compares five ways of writing down pre- and postconditions. read more...

add a comment |category: |Views: 12

tags: another

Model-View-ViewModel (MVVM) – Part 5 of n: IUserInterface(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

This post gives a simple solution to the problem how to abstract the user interface in MVVM-applications. read more...

add a comment |category: |Views: 76

tags: another

No Interface Without Contract? – Finding Pre- and Postconditions(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

Part 3 of the series "No interface without contract?" which introduces Microsoft Code Contracts. This part is about pre- and postconditions of a sample class which will be used by further parts. read more...

add a comment |category: |Views: 4

tags: another

Ban string literals from your code!(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

This post explains why string literals in code can be evil and how to reduce the number of them. read more...

add a comment |category: |Views: 12

tags: another

No interface without contract? – About Pre- and Postconditions(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

Part 1 of the series "No interface without contract?" which introduces Microsoft Code Contracts. This part introduces the idea of pre- and postconditions. read more...

1 comment |category: |Views: 11

tags: another

Pitfalls and Best Practices to prevent them: this and base(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

A post about the difference between this and base. read more...

add a comment |category: |Views: 7

tags: another

No interface without contract? – Why plain interfaces aren’t enough(winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 2 years, 10 months ago

Part 1 of the series "No interface without contract?" which introduces Microsoft Code Contracts. This part talks about the fundamentals why to use something like Code Contracts. read more...

add a comment |category: |Views: 13

tags: another