
and annoying me with pop ups.
All I wanted was to show today's date on a screen. It took a few minutes of Googling to put the pieces together.
Here's the short and skinny: <TextBlock Text="{Binding Source={x:Static System:DateTime.Now}, StringFormat=\{0:MM/dd/yyyy\}}"></TextBlock><Window x:Class="WpfApplication3.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib"> <TextBlock Text="{Binding Source={x:Static System:DateTime.Now}, StringFormat=\{0:MM/dd/yyyy\}}"></TextBlock></Window>Dimcasts.Expect(x => x.ToLearn()).Something.New()
public class test
{
public void doTest()
{
Interface1<object> win = new Class1<object>();
Interface2 fail = new Class1<object>();
}
}
public interface Interface2 : Interface1<object>
{
}
public interface Interface1<t> where T : class
{
}
public class Class1<t> : Interface1<t>
where T : class
{
}