private static int AsfSettingsGetterFunc(int slot, ProviderPropertyDefinition propertyDefinition, IPropertyBag bag)
        {
            if (bag[propertyDefinition] == null)
            {
                bag[propertyDefinition] = HostedContentFilterPolicySchema.GetDefaultAsfOptionValues();
            }
            int num = (slot % 2 == 0) ? 0 : 4;

            return((bag[propertyDefinition] as byte[])[slot / 2] >> num & 15);
        }
 private static GetterDelegate AsfSettingsGetterDelegateInt32(int slot, ProviderPropertyDefinition propertyDefinition, Func <int, int> modifier)
 {
     return(delegate(IPropertyBag bag)
     {
         int num = HostedContentFilterPolicySchema.AsfSettingsGetterFunc(slot, propertyDefinition, bag);
         if (modifier == null)
         {
             return num;
         }
         return modifier(num);
     });
 }
 private static SetterDelegate AsfSettingsSetterDelegate(int slot, ProviderPropertyDefinition propertyDefinition)
 {
     return(delegate(object value, IPropertyBag bag)
     {
         if (bag[propertyDefinition] == null)
         {
             bag[propertyDefinition] = HostedContentFilterPolicySchema.GetDefaultAsfOptionValues();
         }
         byte[] array = bag[propertyDefinition] as byte[];
         int num = (slot % 2 == 0) ? 0 : 4;
         int num2 = (num == 0) ? 240 : 15;
         int num3 = (int)array[slot / 2];
         num3 &= num2;
         num3 |= (int)value << num;
         array[slot / 2] = (byte)num3;
         (bag as PropertyBag).MarkAsChanged(propertyDefinition);
     });
 }
 private static GetterDelegate AsfSettingsGetterDelegate(int slot, ProviderPropertyDefinition propertyDefinition)
 {
     return((IPropertyBag bag) => (SpamFilteringOption)HostedContentFilterPolicySchema.AsfSettingsGetterFunc(slot, propertyDefinition, bag));
 }