如何获取 ASP.NET Identity 中使用的 class 的源代码?
How can I get the source code of a class used in ASP.NET Identity?
我正在编写代码:
IdentityResult result = new IdentityResult("Username not found");
我可以看到这是这里的构造函数之一;
namespace Microsoft.AspNet.Identity
{
//
// Summary:
// Represents the result of an identity operation
public class IdentityResult
{
//
// Summary:
// Failure constructor that takes error messages
//
// Parameters:
// errors:
public IdentityResult(IEnumerable<string> errors);
//
// Summary:
// Failure constructor that takes error messages
//
// Parameters:
// errors:
public IdentityResult(params string[] errors);
//
// Summary:
// Constructor that takes whether the result is successful
//
// Parameters:
// success:
protected IdentityResult(bool success);
但是我找不到这个的源代码。有源代码吗?
您可以免费使用 telerik 反编译器
http://www.telerik.com/products/decompiler.aspx
也尝试搜索 class。
http://dotnetframework.org/Search.aspx
您可以轻松地从 Github repository (future releases and beta) or CodePlex(旧版本)下载源代码,因为 ASP.NET Identity(以及 ASP.NET 的许多其他部分)现在是开源的。
Visual Studio 仅当操作源在机器本身上不可用时才知道 class 的轮廓(因此您在单击 F12 时会看到此视图)。
我正在编写代码:
IdentityResult result = new IdentityResult("Username not found");
我可以看到这是这里的构造函数之一;
namespace Microsoft.AspNet.Identity
{
//
// Summary:
// Represents the result of an identity operation
public class IdentityResult
{
//
// Summary:
// Failure constructor that takes error messages
//
// Parameters:
// errors:
public IdentityResult(IEnumerable<string> errors);
//
// Summary:
// Failure constructor that takes error messages
//
// Parameters:
// errors:
public IdentityResult(params string[] errors);
//
// Summary:
// Constructor that takes whether the result is successful
//
// Parameters:
// success:
protected IdentityResult(bool success);
但是我找不到这个的源代码。有源代码吗?
您可以免费使用 telerik 反编译器
http://www.telerik.com/products/decompiler.aspx
也尝试搜索 class。 http://dotnetframework.org/Search.aspx
您可以轻松地从 Github repository (future releases and beta) or CodePlex(旧版本)下载源代码,因为 ASP.NET Identity(以及 ASP.NET 的许多其他部分)现在是开源的。
Visual Studio 仅当操作源在机器本身上不可用时才知道 class 的轮廓(因此您在单击 F12 时会看到此视图)。