Exemplo n.º 1
0
        public override string SerializeToString()
        {
            string value = string.Empty;
            ISerializable serializer = null;
            if (m_Trigger.ValueType() == typeof(iCalDateTime))            
                serializer = new iCalDateTimeSerializer(m_Trigger.DateTime);                
            else
                serializer = new FieldSerializer(m_Trigger.Duration);

            if (serializer != null)
                value += serializer.SerializeToString();

            return value;
        }        
Exemplo n.º 2
0
        public override string SerializeToString()
        {
            string        value      = string.Empty;
            ISerializable serializer = null;

            if (m_Trigger.ValueType() == typeof(iCalDateTime))
            {
                serializer = new iCalDateTimeSerializer(m_Trigger.DateTime);
            }
            else
            {
                serializer = new FieldSerializer(m_Trigger.Duration);
            }

            if (serializer != null)
            {
                value += serializer.SerializeToString();
            }

            return(value);
        }