AI OnAI Off
var contentRepository = ServiceLocation.ServiceLocator.Current.GetInstance<IContentRepository>();
var page = contentRepository.Get(someReference);
IContentTypeRepository contentTypeRepository = Locate.ContentTypeRepository();
var contentType = contentTypeRepository.Load(page.ContentTypeID);
var guid = contentType.Guid;
How can I do a check to see if a page (pagedata) are is a pagetype with the by comparing the guid?
I know what guid the pagetype has, but how can I check that field by code if I have a PageData reference?