Exemple #1
0
        public Guid ReadGuid(string name)
        {
            var child = FindChildNode(_cur, name, typeof(Guid), NodeValueType.Guid);

            if (child == null)
            {
                throw new Exception(string.Format("The Node Can't Find  Name : {0} ,Type : {1}", name, typeof(Guid)));
            }
            if (child.nodeType != NodeType.Node)
            {
                throw new Exception("The Child is Not  Node");
            }
            return(FrameworkBitConverter.ToGuid(child.valuePacket.message, 0));
        }
 protected void ReadGUID(Packet pkg)
 {
     context.guid = FrameworkBitConverter.ToGuid(pkg.message, 0);
 }