discid_has_feature() public static method

public static discid_has_feature ( UInt32 feature ) : bool
feature System.UInt32
return bool
Example #1
0
        public static bool TestFeatureIsAvailableOrNotSet(Features featureList, Features testForFeature)
        {
            if (TestFeatureIsSelected(featureList, testForFeature))
            {
                return(NativeMethods.discid_has_feature((UInt32)testForFeature));
            }

            // Feature not set
            return(true);
        }
Example #2
0
        public static IEnumerable <Features> GetFeatureList()
        {
            var result = new List <Features>();

            foreach (Features feature in Enum.GetValues(typeof(Features)))
            {
                if (NativeMethods.discid_has_feature((UInt32)feature))
                {
                    result.Add(feature);
                }
            }

            return(result);
        }