This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put this in a unit test | |
var query = Assembly.Load("MyMVCProjectAssemblyName") | |
.GetTypes() | |
.Where(x => x.Name.EndsWith("Controller")) | |
.Where(x => !x.IsAbstract) | |
.Select(x => new | |
{ | |
Name = x.Name.Substring(0, x.Name.Length - 10), | |
Type = x, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace ThomasJaworski.Experiments | |
{ | |
// Lösung des Lotto-Rätsels (siehe z.B. http://www.onlinewahn.de/mega-r.htm) mit nur einem LINQ-Query, | |
// bewußt nicht auf Performance ausgelegt sondern auf leicht lesbaren Code | |
class LottoRechner | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
namespace ThomasJaworski.ComponentModel | |
{ | |
public abstract class ChangeListener : INotifyPropertyChanged, IDisposable | |
{ | |
#region *** Members *** | |
protected string _propertyName; |