C# Class Xml.Schema.Linq.CodeGen.SimpleTypeCodeDomHelper

Show file Open project: o2platform/O2.Platform.Projects Class Usage Examples

Public Methods

Method Description
CreateFacets ( Xml.Schema.Linq.CodeGen.ClrSimpleTypeInfo type ) : System.CodeDom.CodeExpression
GetCreateUnionValueExpression ( object value, Xml.Schema.Linq.CodeGen.UnionSimpleTypeInfo unionDef, CodeExpressionCollection collection ) : void
GetCreateValueExpression ( object value, Xml.Schema.Linq.CodeGen.ClrSimpleTypeInfo typeDef, CodeExpressionCollection collection ) : void

Private Methods

Method Description
CreateByteArrayExpression ( object value ) : System.CodeDom.CodeExpression
CreateFixedDefaultArrayValueInit ( string baseType, string value ) : CodeArrayCreateExpression
CreateFixedDefaultValueExpression ( CodeTypeReference type, string value ) : System.CodeDom.CodeExpression
CreateGetBuiltInSimpleType ( XmlTypeCode typeCode ) : System.CodeDom.CodeExpression
CreateSimpleTypeDef ( Xml.Schema.Linq.CodeGen.ClrSimpleTypeInfo typeInfo, string>.Dictionary nameMappings, LinqToXsdSettings settings, bool memberOrItemType ) : System.CodeDom.CodeExpression
CreateTypeConversionExpr ( string typeName, object value ) : System.CodeDom.CodeExpression
CreateTypedValueExpression ( XmlSchemaDatatype dataType, object value ) : System.CodeDom.CodeExpression
CreateValueExpression ( string builtInType, string strValue ) : System.CodeDom.CodeExpression
MaterializeSimpleTypeDef ( Xml.Schema.Linq.CodeGen.ClrSimpleTypeInfo typeInfo, string>.Dictionary nameMappings, LinqToXsdSettings settings ) : System.CodeDom.CodeExpression

Method Details

CreateFacets() public static method

public static CreateFacets ( Xml.Schema.Linq.CodeGen.ClrSimpleTypeInfo type ) : System.CodeDom.CodeExpression
type Xml.Schema.Linq.CodeGen.ClrSimpleTypeInfo
return System.CodeDom.CodeExpression

GetCreateUnionValueExpression() public static method

public static GetCreateUnionValueExpression ( object value, Xml.Schema.Linq.CodeGen.UnionSimpleTypeInfo unionDef, CodeExpressionCollection collection ) : void
value object
unionDef Xml.Schema.Linq.CodeGen.UnionSimpleTypeInfo
collection System.CodeDom.CodeExpressionCollection
return void

GetCreateValueExpression() public static method

public static GetCreateValueExpression ( object value, Xml.Schema.Linq.CodeGen.ClrSimpleTypeInfo typeDef, CodeExpressionCollection collection ) : void
value object
typeDef Xml.Schema.Linq.CodeGen.ClrSimpleTypeInfo
collection System.CodeDom.CodeExpressionCollection
return void