All pastes #730017 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-08 20:13 UTC
rendered paste body
        public struct Data
        {
            public string foo;
            public string bar;
        }

        public object someFunction()
        {
            Data d = new Data();
            d.bar = "12345";
            d.foo = "12345";

            object obj = d;

            return obj;
        }

        // And then
        object data = someFunction();

        // Now i want to get the structs 'd' s data