Share via


TypeFacetsPromotionRules Class

Definition

Defines the promotion rules for type facets.

public class TypeFacetsPromotionRules
type TypeFacetsPromotionRules = class
Public Class TypeFacetsPromotionRules
Inheritance
TypeFacetsPromotionRules

Constructors

TypeFacetsPromotionRules()

Methods

GetPromotedPrecision(Nullable<Int32>, Nullable<Int32>)

Computes the promoted precision value for left and right. The default implementation works as follows:

  1. if both left and right are null, return null;
  2. if only one is null, return the other;
  3. otherwise, return the larger.
GetPromotedScale(Nullable<Int32>, Nullable<Int32>)

Computes the promoted scale value for left and right. The default implementation works as follows:

  1. if both left and right are null, return null;
  2. if only one is null, return the other;
  3. otherwise, return the larger.

Applies to