예제 #1
0
		private bool ValidateType(Parameter typeName)
		{
			if (typeName == null || string.IsNullOrEmpty(typeName.Value))
            {
				output.WriteLine("The /TypeName argument is missing or incomplete");
				return false;
            }
			return true;
		}
예제 #2
0
		private bool ValidateMethod(Parameter methodName)
		{
			if (methodName == null || string.IsNullOrEmpty(methodName.Value))
            {
				output.WriteLine("The /MethodName argument is missing or incomplete");
            }
			return true;
		}
예제 #3
0
		private bool ValidatePath(Parameter path)
		{
			if (path == null || string.IsNullOrEmpty(path.Value))
            {
				output.WriteLine("The /AssemblyPath argument is missing or incomplete");
				return false;
            }
			if (File.Exists(path.Value) == false)
            {
				output.WriteLine("Requested assembly not found");
				return false;
            }
			return true;
		}