| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/pythonnet/pythonnet/v3.2.0/src/embed_tests/ClassManagerTests.cs | [Back] [Original] |
using NUnit.Framework;
using Python.Runtime;
namespace Python.EmbeddingTest
{
public class ClassManagerTests
{
[Test]
public void NestedClassDerivingFromParent()
{
var f = new NestedTestContainer().ToPython();
f.GetAttr(nameof(NestedTestContainer.Bar));
}
}
public class NestedTestParent
{
public class Nested : NestedTestParent
{
}
}
public class NestedTestContainer
{
public NestedTestParent Bar = new NestedTestParent.Nested();
}
}
| Web Proxy Viewer | New URL | Original Page |