コード例 #1
0
        public BssomNumber Deserialize(ref BssomReader reader, ref BssomDeserializeContext context)
        {
            if (reader.TryReadNull())
            {
                return(null);
            }

            return(BssomObjectFormatterHelper.DeserializePrimitiveWithBssomPrimitiveType(ref reader));
        }
コード例 #2
0
        public BssomGuid Deserialize(ref BssomReader reader, ref BssomDeserializeContext context)
        {
            object val = BssomObjectFormatterHelper.DeserializeBssObject(ref reader, ref context, true);

            if (val == null)
            {
                return(null);
            }

            return((BssomGuid)val);
        }
コード例 #3
0
ファイル: ObjectFormatter.cs プロジェクト: zqh2945/Bssom.Net
 public object Deserialize(ref BssomReader reader, ref BssomDeserializeContext context)
 {
     return(BssomObjectFormatterHelper.DeserializeBssObject(ref reader, ref context, context.Option.IsPriorityToDeserializeObjectAsBssomValue));
 }
コード例 #4
0
 public BssomValue Deserialize(ref BssomReader reader, ref BssomDeserializeContext context)
 {
     return((BssomValue)BssomObjectFormatterHelper.DeserializeBssObject(ref reader, ref context, true));
 }