Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="surfaceparm"></param>
        /// <returns></returns>
        public static SurfaceparmAttribute GetSurfaceparmAttributes(Surfaceparms surfaceparm)
        {
            var memInfo    = typeof(Surfaceparms).GetMember(surfaceparm.ToString());
            var attributes = memInfo[0].GetCustomAttributes(typeof(SurfaceparmAttribute), false);

            return((SurfaceparmAttribute)attributes[0]);
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="surfaceparm"></param>
 /// <returns></returns>
 public static SurfparmFlags GetFlags(Surfaceparms surfaceparm)
 {
     return(SurfaceparmHelper.GetSurfaceparmAttributes(surfaceparm).Flags);
 }