[Mono-bugs] [Bug 507067] Compiler fails from stack overflow

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 13 13:28:53 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=507067

User trevor.davis at mohawkcollege.ca added comment
http://bugzilla.novell.com/show_bug.cgi?id=507067#c5


Trevor Davis <trevor.davis at mohawkcollege.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
                 CC|                            |trevor.davis at mohawkcollege.
                   |                            |ca
      Info Provider|trevor.davis at mohawkcollege. |
                   |ca                          |




--- Comment #5 from Trevor Davis <trevor.davis at mohawkcollege.ca>  2009-10-13 11:28:49 MDT ---
Hello Marek, I apologize for not providing the information in a timely manner.
I have attached a subset of the class which is causing the issue. Please let me
know if you require any additional information. 

Thank you,
Trevor Davis

TS.cs:

    public class TS
    {
        private const string TS_FORMAT = "yyyyMMddHHmmss'.'ffffzzz";

        private string m_V;

        public string vValue { get { return m_V; } set { m_V = value; } }

        public DateTime? v { get { return (DateTime?)this; } set { m_V =
value.Value.ToString(TS_FORMAT,
System.Globalization.CultureInfo.InvariantCulture).Replace(":", ""); } }

        public static implicit operator DateTime?(TS s)
        {
            DateTime result = DateTime.MinValue;
            if (DateTime.TryParseExact(s.m_V, TS_FORMAT,
System.Globalization.CultureInfo.InvariantCulture,
System.Globalization.DateTimeStyles.None, out result))
                return result;

            return null;
        }

        public static implicit operator TS(DateTime? date)
        {
            TS r = new TS();
            if (null == date)
                r.v = null;
            else
                r.m_V = date.Value.ToString(TS_FORMAT,
System.Globalization.CultureInfo.InvariantCulture).Replace(":", "");

            return r;
        }

        public static explicit operator string(TS s)
        {
            return s.m_V;
        }
    }

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list