ArrayList vs List<> in C#

Yes, pretty much. List<T> is a generic class. It supports storing values of a specific type without casting to or from object (which would have incurred boxing/unboxing overhead when T is a value type in the ArrayList case). ArrayList simply stores object references. As a generic collection, List<T> implements the generic IEnumerable<T> interface and can be used easily in LINQ (without requiring any Cast or OfType call). ArrayList belongs to the days that C# didn’t have … Read more

What is the current directory in a batch file?

From within your batch file: %cd% refers to the current working directory (variable) %~dp0 refers to the full path to the batch file’s directory (static) %~dpnx0 and %~f0 both refer to the full path to the batch directory and file name (static). See also: What does %~dp0 mean, and how does it work?

NSURLErrorDomain error codes description

The NSURLErrorDomain error codes are listed here https://developer.apple.com/documentation/foundation/1508628-url_loading_system_error_codes However, 400 is just the http status code (http://www.w3.org/Protocols/HTTP/HTRESP.html) being returned which means you’ve got something wrong with your request.

No function matches the given name and argument types

Your function has a couple of smallint parameters.But in the call, you are using numeric literals that are presumed to be type integer. A string literal or string constant (‘123’) is not typed immediately. It remains type “unknown” until assigned or cast explicitly. However, a numeric literal or numeric constant is typed immediately. The manual: A numeric constant that contains neither a decimal … Read more

How does rhs work?

The compiler doesn’t know that rhs stands for “right hand side”, and in fact the name of that variable can be anything you like. The compiler “knows” how to format this because the syntax of operator= requires it to be this way. The language defines the usage of this operator to take the form: The code above calls A::operator=(const &other) against … Read more