コード例 #1
0
        public static bool IsPersistenceRelevant(Type mixinType)
        {
            ArgumentUtility.CheckNotNull("mixinType", mixinType);

            return(TypeExtensions.CanAscribeTo(mixinType, typeof(DomainObjectMixin <,>)));
        }
 public void DerivedType()
 {
     Assert.That(TypeExtensions.CanAscribeTo(typeof(IDerivedInterface), typeof(IDerivedInterface)), Is.True);
 }
コード例 #3
0
 /// <summary>
 /// Evaluates whether the <paramref name="type"/> is an <see cref="ObjectList{T}"/> or derived from <see cref="ObjectList{T}"/>.
 /// </summary>
 /// <param name="type">The <see cref="Type"/> to check. Must not be <see langword="null" />.</param>
 /// <returns>
 /// <see langword="true"/> if the <paramref name="type"/> is an <see cref="ObjectList{T}"/> or derived from <see cref="ObjectList{T}"/>.
 /// </returns>
 public static bool IsObjectList(Type type)
 {
     return(TypeExtensions.CanAscribeTo(type, typeof(ObjectList <>)));
 }