コード例 #1
0
        protected void btnUpload_Click(object sender, EventArgs e)
        {
            SocialAuthUser sauser    = new SocialAuthUser();
            MemoryStream   ms        = new MemoryStream(FileUpload1.FileBytes);
            IFormatter     formatter = new BinaryFormatter();
            Token          token     = (Token)formatter.Deserialize(ms);

            sauser.LoadToken(token, "default.aspx");
        }