コード例 #1
0
        /// <summary>
        /// Creates a new instance of <see cref="LocalResourceReader2"/>.
        /// </summary>
        /// <param name="resourceFilePaths">
        /// The array of resource file paths that should be read.
        /// </param>
        public LocalResourceReader2(string[] resourceFilePaths, IKeyFormatter keyFormatter)
        {
            if (resourceFilePaths == null)
                throw new ArgumentNullException("resourceFilePaths");

            if (keyFormatter == null)
                throw new ArgumentNullException("keyFormatter");

            this.keyFormatter = keyFormatter;
            this.resourceFilePaths = resourceFilePaths;
        }
コード例 #2
0
        /// <summary>
        /// Creates a new instance of the <see cref="ResourceEnumerator2"/> type for the
        /// provided resourceFilePaths.
        /// </summary>
        /// <param name="resourceFilePaths"></param>
        /// <param name="keyFormatter">Instance of the <see cref="IKeyFormatter"/> to use when formatting keys.</param>
        public ResourceEnumerator2(string[] resourceFilePaths, IKeyFormatter keyFormatter)
        {
            if (resourceFilePaths == null)
                throw new ArgumentNullException("resourceFilePaths");

            if (resourceFilePaths.Length == 0)
                throw new ArgumentException("At least one resource file path must be passed.");

            if (keyFormatter == null)
                throw new ArgumentNullException("keyFormatter");

            this.resourceFilePaths = resourceFilePaths;
            this.keyFormatter = keyFormatter;
        }
コード例 #3
0
 public ConcatOperation(MemoryPool <byte> allocator,
                        string key, IKeyFormatter keyFormatter,
                        ConcatenationMode mode,
                        in ReadOnlyMemory <byte> data)
コード例 #4
0
 public GetOperation(MemoryPool <byte> allocator, string key, IKeyFormatter keyFormatter)
     : base(allocator, key, keyFormatter)
 {
 }
コード例 #5
0
 public KeyFormatterConfigurationSourceDecorator(IConfigurationSource inner, IKeyFormatter keyFormatter)
 {
     _inner        = inner;
     _keyFormatter = keyFormatter;
 }
コード例 #6
0
 protected GetOperationBase(MemoryPool <byte> allocator, string key, IKeyFormatter keyFormatter, byte extraLength = 0)
     : base(allocator, key, keyFormatter, extraLength)
 {
 }
コード例 #7
0
 public UserSettingsBlock()
 {
     InitializeComponent();
     keyFormatter = new KeyFormatterWindows();
 }