예제 #1
0
		public RuntimeFile (Func<Runtime, string> sourceCreator, Func<Runtime, string> destinationCreator, Func<Runtime, bool>? shouldSkip = null, bool strip = true, RuntimeFileType type = RuntimeFileType.Other, bool shared = false)
		{
			Source = sourceCreator;
			Destination = destinationCreator;
			ShouldSkip = shouldSkip;
			Strip = strip;
			Type = type;
			Shared = shared;
		}
예제 #2
0
        public RuntimeFile(Func <Runtime, string> sourceCreator, Func <Runtime, string> destinationCreator, Func <Runtime, bool> shouldSkip = null, bool strip = true, RuntimeFileType type = RuntimeFileType.Other, bool shared = false)
        {
            if (sourceCreator == null)
            {
                throw new ArgumentNullException(nameof(sourceCreator));
            }
            if (destinationCreator == null)
            {
                throw new ArgumentNullException(nameof(destinationCreator));
            }

            Source      = sourceCreator;
            Destination = destinationCreator;
            ShouldSkip  = shouldSkip;
            Strip       = strip;
            Type        = type;
            Shared      = shared;
        }