Exemple #1
0
        public static Primitive Unbox(object value)
        {
            var tp = TypedPrimitive.Unbox(value);

            return(tp.Value);
        }
Exemple #2
0
        public void Size()
        {
            Assert.Equal(20, Marshal.SizeOf <TypedPrimitive>());

            var     arr    = new TypedPrimitive[16];
            ref var elem0  = ref arr[0];