1 vote
closed
Static methods, GetProfile

Description

 
Why aren't these two methods static?
The underlining method is static, and it seems that these calls would be called from outside a created WebProfile.

public virtual WebProfile GetProfile(string username) {
return new WebProfile(System.Web.Profile.ProfileBase.Create(username));
}

public virtual WebProfile GetProfile(string username, bool authenticated) {
return new WebProfile(System.Web.Profile.ProfileBase.Create(username, authenticated));
}

File Attachments


No files are attached


Closed Apr 17 2008 at 7:02 AM  by robolize

Comments

most recent at top (show oldest at top)
robolize wrote Apr 16 2008 at 5:33 PM
John,
Another good point. A large portion of this code is not my own and was branched from the “Web Profile Generator” on CodePlex. I never looked too closely at the actual generated code. My main focus has been to get the profile generation to work with vs2008 as well as add some features that I wanted.
I changed these two methods to be static for the 1.2 release.

Thanks
-Joe


Updating...
Page view tracker