I am implementing the MembershipProvider. So I want to refer to the implementation of sqlMemberShipProvider by Microsoft in .NET reflector and find an interesting thing:
for RequiresQuestionAndAnswer, it retrieve value of _RequiresQuestionAndAnswer directly.
public override bool RequiresQuestionAndAnswer
{
get
{
return this._RequiresQuestionAndAnswer;
}
}
But where the _RequiresQuestionAndAnswer get the value? I think there must be some logic retrieve value from web.config, right? But I can't find. Why? Where is the code?
As of Version 6.6:
_RequiresQuestionAndAnswer
field in the getter-body. This will take you to the field-declaration and highlight the field on the browser-panel.Initialize
method.SecUtility.GetBooleanValue
with appropriate arguments.