21 lines
242 B
C#
Raw Normal View History

using System;
public class TestProgram
{
public static void Main ()
{
IMyStruct myStruct = null;
MyStruct? structValue;
structValue = (MyStruct?)myStruct;
}
}
public struct MyStruct : IMyStruct
{
}
public interface IMyStruct
{
}