コード例 #1
0
ファイル: TriggerSerializer.cs プロジェクト: xxjeng/nuxleus
        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;
        }        
コード例 #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);
        }