public static Guid ReadGuid(this Lidgren.Network.NetBuffer target) { int guidLength = target.ReadInt32(); byte[] guidBytes = target.ReadBytes(guidLength); return(new Guid(guidBytes)); }