コード例 #1
0
 protected override void AddLinkedAccount(LinkedAccount item)
 {
     var linkedAccount = new NhLinkedAccount();
     linkedAccount.GetType().GetProperty("LastLogin").SetValue(linkedAccount, item.LastLogin);
     linkedAccount.GetType().GetProperty("ProviderAccountID").SetValue(linkedAccount, item.ProviderAccountID);
     linkedAccount.GetType().GetProperty("ProviderName").SetValue(linkedAccount, item.ProviderName);
     linkedAccount.GetType().GetProperty("Account").SetValue(linkedAccount, this);
     this.LinkedAccountsCollection.Add(linkedAccount);
 }
コード例 #2
0
        protected override void AddLinkedAccount(LinkedAccount item)
        {
            var linkedAccount = new NhLinkedAccount();

            linkedAccount.GetType().GetProperty("LastLogin").SetValue(linkedAccount, item.LastLogin);
            linkedAccount.GetType().GetProperty("ProviderAccountID").SetValue(linkedAccount, item.ProviderAccountID);
            linkedAccount.GetType().GetProperty("ProviderName").SetValue(linkedAccount, item.ProviderName);
            linkedAccount.GetType().GetProperty("Account").SetValue(linkedAccount, this);
            this.LinkedAccountsCollection.Add(linkedAccount);
        }