.NET API Documentation
System.Collections
Interface ICollection<T>
Represents a strongly typed collection of objects that can be accessed by index. Provides methods for manipulation of the collection.
public interface ICollection<out T> : IEnumerable<T>, IEnumerableType Parameters
T
: The type of elements in the collection.
Remarks
ICollection<T>
is the base interface for classes that represent collections of generic objects.
Class ArrayList
Represents a non-generic collection of objects that can be individually accessed by the index of an element. Allows for dynamic resizing.
public class ArrayList : IList, ICollection, IEnumerableReturn Value
An integer representing the number of elements in the collection.
Remarks
Use ArrayList
when you need a collection that can dynamically grow or shrink, and where the order of elements matters.
System.IO
Class File
Provides static methods and properties for the creation, moving, and deletion of files and directories. Also provides methods for reading from and writing to files.
public static class FileMethod ReadAllText(string path)
public static string ReadAllText(string path)
Parameters
path
: The file to read.
Return Value
The contents of the file or an empty string if the file does not exist.
Method WriteAllText(string path, string contents)
public static void WriteAllText(string path, string contents)
Parameters
path
: The file to write to.contents
: The string to write to the file.
System.Linq
Class Enumerable
Provides extension methods for LINQ queries.
public static class EnumerableMethod Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
public static IEnumerable<TSource> Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
Type Parameters
TSource
: The type of the elements ofsource
.
Parameters
source
: AnIEnumerable<T>
to filter.predicate
: A function to test each element of the sequence for a condition.
Return Value
An IEnumerable<T>
that contains elements from the input sequence that satisfy the condition.
System.Text
Class StringBuilder
Represents a mutable string of characters.
public class StringBuilder : ICloneableMethod Append(string value)
public StringBuilder Append(string value)
Parameters
value
: The string to append.
Return Value
A reference to this instance after the append operation has completed.
System.Threading
Class Thread
Represents a thread of execution in the common language runtime.
public sealed class Thread : _ThreadMethod Sleep(int millisecondsTimeout)
public static void Sleep(int millisecondsTimeout)
Parameters
millisecondsTimeout
: The amount of time to sleep.
Microsoft.Windows
Contains classes and interfaces for interacting with Windows-specific features.
Microsoft.Win32
Provides types that allow you to access the Windows registry and to create shortcuts.
Class Registry
Provides properties and methods for accessing the Windows registry.
public static class RegistrySystem.Xml.Linq
Provides classes for LINQ to XML, which enables you to query and manipulate XML data.
Class XDocument
Represents an XML document.
public class XDocument : XContainer, IXDocument, IXContainerSystem.Xml.Schema
Provides types for working with XML Schema.
Class XmlSchema
Represents an XML Schema definition language (XSD) schema.
public class XmlSchema : XmlSchemaObject, IXSDNodeSystem.Data.SqlClient
Provides classes for connecting to and querying SQL Server databases.
Class SqlConnection
Represents a connection to a SQL Server database.
public class SqlConnection : DbConnection, IDbConnection, ICloneableProperty ConnectionString
public string ConnectionString { get; set; }
Remarks
Specifies the data source, user ID, password, and other options to establish a connection.
Method Open()
public void Open()
Remarks
Opens a database connection with the properties and settings specified by the ConnectionString
.