Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c877d360ca
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (47 sloc) 1.289 kb
using System;
#if DOTNETISOLDANDSAD || WINDOWS_PHONE
namespace System.Diagnostics.Contracts
{
internal class ContractInvariantMethodAttribute : Attribute {}
internal class Contract
{
public static void Requires(bool b, string s = null) {}
public static void Ensures(bool b, string s = null) {}
public static void Invariant(bool b, string s = null) {}
public static T Result<T>() { return default(T); }
}
}
#endif
#if (SILVERLIGHT && !SILVERLIGHT5) || IOS || WINRT
namespace System.ComponentModel
{
public class PropertyChangingEventArgs : EventArgs
{
public PropertyChangingEventArgs(string PropertyName)
{
this.PropertyName = PropertyName;
}
public string PropertyName { get; protected set; }
}
public delegate void PropertyChangingEventHandler(
Object sender,
PropertyChangingEventArgs e
);
public interface INotifyPropertyChanging
{
event PropertyChangingEventHandler PropertyChanging;
}
}
#endif
#if IOS
namespace System.Windows.Input
{
public interface ICommand
{
bool CanExecute(object parameter);
void Execute(object parameter);
event EventHandler CanExecuteChanged;
}
}
#endif
// vim: tw=120 ts=4 sw=4 et :
Jump to Line
Something went wrong with that request. Please try again.