Esempio n. 1
0
        public ITentPostType FromType(ITentPostType postType, string subType)
        {
            Ensure.Argument.IsNotNull(postType, nameof(postType));
            Ensure.Argument.IsNotNullOrWhiteSpace(subType, nameof(subType));

            // Create a new Post Type with the provided SubType.
            return new TentPostType(postType.Type, subType);
        }
Esempio n. 2
0
 public bool Equals(ITentPostType other)
 {
     return this.ToString() == other.ToString();
 }