void ITypeScopeAggregator.Add(TypeScope scope)
        {
            if (scope == null)
                throw Error.ArgumentNull("scope");

            (scopes ?? (scopes = new List<TypeScope>()))
                .Add(scope);
        }
Exemple #2
0
        public void Property_Again()
        {
            var scope = new TypeScope();

            var a = scope.Property("A");
            var b = scope.Property("A");

            Assert.That(a, Is.SameAs(b));
        }
 public void Add(TypeScope scope)
 {
     scopes.Add(scope);
 }