protected static void AddPageTypeClassWithAPropertyOfTypeToAppDomain <TProperty>()
 {
     SyncContext.CreateAndAddPageTypeClassToAppDomain(type =>
                                                      type.AddProperty(prop =>
     {
         prop.Name = PropertyName;
         prop.Type = typeof(TProperty);
         prop.AddAttributeTemplate(new PageTypePropertyAttribute());
     }));
 }