Exemple #1
0
        public T As <T>(int index)
        {
            if (IsError)
            {
                throw new ZYNETException(ErrorMsg, ErrorId);
            }

            return((T)Serialization.UnpackSingleObject(typeof(T), Arguments[index]));
        }
Exemple #2
0
        public T As <T>()
        {
            if (IsError)
            {
                throw new ZYNETException(ErrorMsg, ErrorId);
            }

            if (Length <= 0)
            {
                throw new ZYNETException("null value", -102);
            }

            return((T)Serialization.UnpackSingleObject(typeof(T), Arguments[0]));
        }
Exemple #3
0
 public object Value(Type type)
 {
     return(Serialization.UnpackSingleObject(type, Data));
 }
Exemple #4
0
 public T Value <T>()
 {
     return((T)Serialization.UnpackSingleObject(typeof(T), Data));
 }
Exemple #5
0
 public T As <T>(int index)
 {
     return((T)Serialization.UnpackSingleObject(typeof(T), Arguments[index]));
 }