Show / Hide Table of Contents
  • MaybeSharp
    • Maybe<T>
      • As
      • Bind
      • Cast
      • CompareTo
      • Equality
      • Equals
      • Explicit
      • GetHashCode
      • GreaterThan
      • GreaterThanOrEqual
      • HasValue
      • Implicit
      • Inequality
      • IsEmpty
      • LessThan
      • LessThanOrEqual
      • Maybe
      • Nothing
      • ToString
      • Value
  • MaybeSharp.Extensions
    • MaybeDictionaryExtensions
      • TryGetValue
    • MaybeExtensions
      • Coalesce
      • Or
      • Select
      • SelectMany
      • SelectNonempty
      • ToNullable
      • ValueOr
      • ValueOrException
      • WhenNothing
      • WhenSomething
      • Where
    • MaybeStringExtensions
      • TryParseBoolean
      • TryParseByte
      • TryParseChar
      • TryParseDateTime
      • TryParseDateTimeOffset
      • TryParseDecimal
      • TryParseDouble
      • TryParseInt
      • TryParseInt16
      • TryParseInt64
      • TryParseSingle
    • NullableExtensions
      • ToMaybe

Class MaybeStringExtensions

Provides extension methods to System.String for working with Maybe<T> values;

Inheritance
System.Object
MaybeStringExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: MaybeSharp.Extensions
Assembly: cs.temp.dll.dll
Syntax
public static class MaybeStringExtensions

Methods

Name Description
TryParseBoolean(String)

Attempts to parse a string to a Maybe<T> of System.Boolean. If the parse fails (or source is null) an empty maybe is returned.

TryParseByte(String)

Attempts to parse a string to a Maybe<T> of System.Byte. If the parse fails (or source is null) an empty maybe is returned.

TryParseChar(String)

Attempts to parse a string to a Maybe<T> of System.Char. If the parse fails (or source is null) an empty maybe is returned.

TryParseDateTime(String)

Attempts to parse a string to a Maybe<T> of System.DateTime. If the parse fails (or source is null) an empty maybe is returned.

TryParseDateTimeOffset(String)

Attempts to parse a string to a Maybe<T> of System.DateTimeOffset. If the parse fails (or source is null) an empty maybe is returned.

TryParseDecimal(String)

Attempts to parse a string to a Maybe<T> of System.Decimal. If the parse fails (or source is null) an empty maybe is returned.

TryParseDouble(String)

Attempts to parse a string to a Maybe<T> of System.Double. If the parse fails (or source is null) an empty maybe is returned.

TryParseInt(String)

Attempts to parse a string to a Maybe<T> of System.Int32. If the parse fails (or source is null) an empty maybe is returned.

TryParseInt16(String)

Attempts to parse a string to a Maybe<T> of System.Int16. If the parse fails (or source is null) an empty maybe is returned.

TryParseInt64(String)

Attempts to parse a string to a Maybe<T> of System.Int64. If the parse fails (or source is null) an empty maybe is returned.

TryParseSingle(String)

Attempts to parse a string to a Maybe<T> of System.Single. If the parse fails (or source is null) an empty maybe is returned.

Back to top Copyright (c) 2017 Troy Willmot