Exemplo n.º 1
0
 /// <summary>
 /// Returns a property selector for the current <see cref="System.Type"/>.
 /// </summary>
 public static PropertyInfoSelector Properties(this TypeSelector typeSelector)
 {
     return(new PropertyInfoSelector(typeSelector.ToList()));
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns a property selector for the current <see cref="Type"/>.
        /// </summary>
        /// <exception cref="ArgumentNullException"><paramref name="typeSelector"/> is <c>null</c>.</exception>
        public static PropertyInfoSelector Properties(this TypeSelector typeSelector)
        {
            Guard.ThrowIfArgumentIsNull(typeSelector, nameof(typeSelector));

            return(new PropertyInfoSelector(typeSelector.ToList()));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Returns a method selector for the current <see cref="System.Type"/>.
 /// </summary>
 public static MethodInfoSelector Methods(this TypeSelector typeSelector)
 {
     return(new MethodInfoSelector(typeSelector.ToList()));
 }
Exemplo n.º 4
0
        /// <summary>
        /// Returns a method selector for the current <see cref="Type"/>.
        /// </summary>
        /// <exception cref="ArgumentNullException"><paramref name="typeSelector"/> is <c>null</c>.</exception>
        public static MethodInfoSelector Methods(this TypeSelector typeSelector)
        {
            Guard.ThrowIfArgumentIsNull(typeSelector, nameof(typeSelector));

            return(new MethodInfoSelector(typeSelector.ToList()));
        }