Open sandboxFocus
  • TOC

Post­Sharp Documentation

Introduction

Deployment and Configuration

Adding Aspects to Code

Logging

Contracts

INotify­Property­Changed

Weak Event

XAML

Parent/Child, Visitor and Disposable

Undo/Redo

Caching

Multithreading

Developing Custom Aspects

Validating Architecture

Testing and Debugging

Miscellaneous

API Reference

Post­Sharp

Post­Sharp.​Aspects

Post­Sharp.​Aspects.​Advices

Post­Sharp.​Aspects.​Configuration

Post­Sharp.​Aspects.​Dependencies

Post­Sharp.​Aspects.​Internals

Post­Sharp.​Aspects.​Serialization

Post­Sharp.​Collections

Post­Sharp.​Constraints

Post­Sharp.​Extensibility

Post­Sharp.​Extensibility.​Build­Time­Logging

Post­Sharp.​Patterns

Post­Sharp.​Patterns.​Caching

Post­Sharp.​Patterns.​Caching.​Backends

Post­Sharp.​Patterns.​Caching.​Backends.​Azure

Post­Sharp.​Patterns.​Caching.​Backends.​Redis

Post­Sharp.​Patterns.​Caching.​Dependencies

Post­Sharp.​Patterns.​Caching.​Formatters

Post­Sharp.​Patterns.​Caching.​Implementation

Post­Sharp.​Patterns.​Caching.​Locking

Post­Sharp.​Patterns.​Caching.​Serializers

Post­Sharp.​Patterns.​Caching.​Value­Adapters

Post­Sharp.​Patterns.​Collections

Post­Sharp.​Patterns.​Collections.​Advices

Post­Sharp.​Patterns.​Contracts

Post­Sharp.​Patterns.​Diagnostics

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Core

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Framework

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Diagnostic­Source

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Http­Client

Post­Sharp.​Patterns.​Diagnostics.​Audit

Post­Sharp.​Patterns.​Diagnostics.​Backends

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Application­Insights

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Audit

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Common­Logging

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Console

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Event­Source

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Log4Net

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Microsoft

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Multiplexer

Post­Sharp.​Patterns.​Diagnostics.​Backends.​NLog

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Null

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace­Source

Post­Sharp.​Patterns.​Diagnostics.​Contexts

Post­Sharp.​Patterns.​Diagnostics.​Correlation

Post­Sharp.​Patterns.​Diagnostics.​Custom

Post­Sharp.​Patterns.​Diagnostics.​Custom.​Messages

Post­Sharp.​Patterns.​Diagnostics.​Formatters

Post­Sharp.​Patterns.​Diagnostics.​Record­Builders

Post­Sharp.​Patterns.​Diagnostics.​Threading­Instrumentation

Post­Sharp.​Patterns.​Diagnostics.​Transactions

Post­Sharp.​Patterns.​Diagnostics.​Transactions.​Model

Post­Sharp.​Patterns.​Dynamic­Advising

Post­Sharp.​Patterns.​Formatters

Post­Sharp.​Patterns.​Model

Post­Sharp.​Patterns.​Model.​Controls

Post­Sharp.​Patterns.​Model.​Type­Adapters

Post­Sharp.​Patterns.​Recording

Post­Sharp.​Patterns.​Recording.​Operations

Post­Sharp.​Patterns.​Threading

Post­Sharp.​Patterns.​Threading.​Models

Post­Sharp.​Patterns.​Utilities

Post­Sharp.​Patterns.​Xaml

Post­Sharp.​Reflection

Post­Sharp.​Reflection.​Method­Body

Post­Sharp.​Serialization

  • Article

Method Append

Append(char)

Appends one char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c)
Parameters
Type Name Description
char c

A char.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, char)

Appends two char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c1, char c2)
Parameters
Type Name Description
char c1

A char.

char c2

A char.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, char, char)

Appends three char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c1, char c2, char c3)
Parameters
Type Name Description
char c1

A char.

char c2

A char.

char c3

A char.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, char, char, char)

Appends four char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c1, char c2, char c3, char c4)
Parameters
Type Name Description
char c1

A char.

char c2

A char.

char c3

A char.

char c4

A char.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, char, char, char, char)

Appends five char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c1, char c2, char c3, char c4, char c5)
Parameters
Type Name Description
char c1

A char.

char c2

A char.

char c3

A char.

char c4

A char.

char c5

A char.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char[], int, int)

Appends an array segment of char to the current UnsafeStringBuilder.

Declaration
public bool Append(char[] c, int offset, int count)
Parameters
Type Name Description
char[] c

A non-null array of char.

int offset

Index of the first char to be appended.

int count

Number of char to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char*, int)

Appends an unmanaged array of char to the current UnsafeStringBuilder.

Declaration
public bool Append(char* c, int count)
Parameters
Type Name Description
char* c

A non-null pointer to an unmanaged array of char.

int count

Number of char to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, int)

Appends several times the same char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c, int count)
Parameters
Type Name Description
char c

A char.

int count

The number of times c has to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char[])

Appends an array of char to the current UnsafeStringBuilder.

Declaration
public bool Append(char[] c)
Parameters
Type Name Description
char[] c

A non-null array of char.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(string)

Appends a string to the current UnsafeStringBuilder.

Declaration
public bool Append(string str)
Parameters
Type Name Description
string str

A non-null string.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(string, int, int)

Appends a part of a string to the current UnsafeStringBuilder.

Declaration
public bool Append(string str, int startIndex, int length)
Parameters
Type Name Description
string str

A non-null string

int startIndex

The index of the first character of the string to append.

int length

The number of characters to append.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(in CharSpan)

Appends a CharSpan to the current UnsafeStringBuilder.

Declaration
public bool Append(in CharSpan span)
Parameters
Type Name Description
CharSpan span

A CharSpan.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(UnsafeString)

Appends an UnsafeString to the current UnsafeStringBuilder.

Declaration
public bool Append(UnsafeString s)
Parameters
Type Name Description
UnsafeString s

A non-null UnsafeString.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(UnsafeStringBuilder)

Appends the current value of a UnsafeStringBuilder to the current UnsafeStringBuilder.

Declaration
public bool Append(UnsafeStringBuilder stringBuilder)
Parameters
Type Name Description
UnsafeStringBuilder stringBuilder

A UnsafeStringBuilder.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(byte)

Appends a byte (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(byte value)
Parameters
Type Name Description
byte value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(sbyte)

Appends an sbyte (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(sbyte value)
Parameters
Type Name Description
sbyte value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(ushort)

Appends a ushort (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(ushort value)
Parameters
Type Name Description
ushort value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(short)

Appends a short (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(short value)
Parameters
Type Name Description
short value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(uint)

Appends a uint (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(uint value)
Parameters
Type Name Description
uint value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(int)

Appends a int (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(int value)
Parameters
Type Name Description
int value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(ulong)

Appends a ulong (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(ulong value)
Parameters
Type Name Description
ulong value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(long)

Appends a long (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(long value)
Parameters
Type Name Description
long value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(bool)

Appends a bool (true or false, litterally) to the current UnsafeStringBuilder.

Declaration
public bool Append(bool value)
Parameters
Type Name Description
bool value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.