System.Web.Profile.ProfileBase.GetPropertyType C# (CSharp) Method

GetPropertyType() static private method

static private GetPropertyType ( System.Web.Configuration.ProfileGroupSettings pgs, System.Web.Configuration.ProfilePropertySettings pps ) : Type
pgs System.Web.Configuration.ProfileGroupSettings
pps System.Web.Configuration.ProfilePropertySettings
return Type
		static Type GetPropertyType (ProfileGroupSettings pgs, ProfilePropertySettings pps)
		{
			Type type = HttpApplication.LoadType (pps.Type);
			if (type != null)
				return type;

			Type profileType = null;
			if (pgs == null)
				profileType = ProfileParser.GetProfileCommonType (HttpContext.Current);
			else
				profileType = ProfileParser.GetProfileGroupType (HttpContext.Current, pgs.Name);

			if (profileType == null)
				return null;

			PropertyInfo pi = profileType.GetProperty (pps.Name);
			if (pi != null)
				return pi.PropertyType;

			return null;
		}