Show / Hide Table of Contents

Class BenachrichtigungExtension

Additional methods for BO4E.Extensions.BusinessObjects.Benachrichtigung.

Inheritance
System.Object
BenachrichtigungExtension
Namespace: BO4E.Extensions.BusinessObjects.Benachrichtigung
Assembly: BO4E-dotnet.Extensions.dll
Syntax
public static class BenachrichtigungExtension : object

Methods

| Improve this Doc View Source

Has(Benachrichtigung, GenericStringStringInfo)

checks if b contains a key value pair specified in gssi in

Declaration
public static bool Has(this Benachrichtigung b, GenericStringStringInfo gssi)
Parameters
Type Name Description
Benachrichtigung b
GenericStringStringInfo gssi
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Has(Benachrichtigung, String)

check if a specific info exists

Declaration
public static bool Has(this Benachrichtigung b, string key)
Parameters
Type Name Description
Benachrichtigung b

Benachrichtigung

System.String key

key to be checked

Returns
Type Description
System.Boolean

true if key is in

| Improve this Doc View Source

Has(Benachrichtigung, String, String)

checks if contains a key value pair

Declaration
public static bool Has(this Benachrichtigung b, string key, string value)
Parameters
Type Name Description
Benachrichtigung b
System.String key
System.String value
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Has<T>(Benachrichtigung, String, Predicate<T>, Boolean, TypeConverter)

checks if Benachrichtigung b has an entry with key keyName in which fulfills a predicate

Declaration
public static bool Has<T>(this Benachrichtigung b, string keyName, Predicate<T> predicate, bool passByDefault = true, TypeConverter typeConverter = null)
    where T : IComparable
Parameters
Type Name Description
Benachrichtigung b

Benachrichtigung object

System.String keyName

key name of the info property

Predicate<T> predicate
System.Boolean passByDefault

defines default behaviour, e.g. if no such key is present

TypeConverter typeConverter

allows to provide an explicit type converter

Returns
Type Description
System.Boolean

true if there's an info object with given key keyName of type T fulfilling predicate or there's no such property but passByDefault is true

Type Parameters
Name Description
T

expected type of the info property

| Improve this Doc View Source

MoveInfosToUserProperties(Benachrichtigung, Boolean)

moves key value pairs from to UserProperties for more conventient handling.

Declaration
public static void MoveInfosToUserProperties(this Benachrichtigung b, bool overwriteExistingKeys = false)
Parameters
Type Name Description
Benachrichtigung b

Benachrichtigung

System.Boolean overwriteExistingKeys

set true to overwrite userProperties with same key

  • Improve this Doc
  • View Source
Back to top Generated by DocFX