Business Logic Toolkit for .NET
www.bltoolkit.net
Welcome Guest, you are in: Login
|  Home   |  Download   |  Documentation   |  Discussions   |  Issues   |  License   |
RSS RSS

Navigation




Search the wiki
»

PoweredBy
InternalTypes.cs

using System;
using System.Runtime.CompilerServices;
using NUnit.Framework;

using BLToolkit.Reflection;

// typeof(TargetType).FullName + "." + TypeBuilderConsts.AssemblyNameSuffix // [assembly: InternalsVisibleTo("HowTo.TypeBuilder.InternalTypesTest.TestObject.TypeBuilder")] [assembly: InternalsVisibleTo("HowTo.TypeBuilder.InternalTypesTest.TestObject.TypeAccessor")]

namespace HowTo.TypeBuilder {

[TestFixture] public class InternalTypesTest { internal abstract class TestObject { public abstract string Value { get; set; } }

[Test] public void Test() { var o = TypeAccessor.CreateInstance<TestObject>(); Assert.IsNotNull(o); } } }
© 2010 www.bltoolkit.net