a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
34 lines
629 B
C#
34 lines
629 B
C#
using System;
|
|
using System.Linq.Expressions;
|
|
|
|
public static class NotifyingProperty
|
|
{
|
|
public static void CreateDependent<TValue> (
|
|
Expression<Func<TValue>> property,
|
|
Func<object> notifier,
|
|
params Expression<Func<object>>[] dependents)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class NotifyingPropertyTest
|
|
{
|
|
public void CreateDependent_NotifierNull ()
|
|
{
|
|
int v = 0;
|
|
NotifyingProperty.CreateDependent (() => v, null);
|
|
}
|
|
|
|
public void CreateDependent_DependentsNull ()
|
|
{
|
|
Expression<Func<object>>[] dependents = null;
|
|
int v = 0;
|
|
NotifyingProperty.CreateDependent (() => v, () => null, dependents);
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
}
|
|
}
|
|
|