fCraft.IPKeyAttribute.IPKeyAttribute C# (CSharp) Method

IPKeyAttribute() public method

public IPKeyAttribute ( ConfigSection section, BlankValueMeaning defaultMeaning, string description ) : System
section ConfigSection
defaultMeaning BlankValueMeaning
description string
return System
        public IPKeyAttribute( ConfigSection section, BlankValueMeaning defaultMeaning, string description )
            : base(section, typeof( IPAddress ), "", description)
        {
            BlankMeaning = defaultMeaning;
            switch ( BlankMeaning ) {
                case BlankValueMeaning.Any:
                    DefaultValue = IPAddress.Any;
                    break;

                case BlankValueMeaning.Loopback:
                    DefaultValue = IPAddress.Loopback;
                    break;

                default:
                    DefaultValue = IPAddress.None;
                    break;
            }
        }