public ObjectResourceSource(object target, string name, ResourceSourceType type)
                : base(name, type)
            {
                if (target == null)
                {
                    throw new ArgumentNullException(nameof(target));
                }

                this.target = target;
            }
예제 #2
0
        public ResourceSource(string name, ResourceSourceType type)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            Name = name;
            Type = type;
        }