C# Mappings

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Projects and Code Engineering > UModel Element Mappings >

C# Mappings

The table below shows the one-to-one correspondence between:

 

UModel elements and C# code elements, when outputting model to code
C# code elements and UModel model elements, when inputting code into model

 

C# Project

C#

UModel

Project

projectfile

projectfile

Component

directory

directory

 

C# Namespace

C#

UModel

Namespace

name

name

Package <<namespace>>

 

C# Class

C#

UModel

Class

name

name

Class

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

sealed

leaf

abstract

abstract

static

<<static>>

unsafe

<<unsafe>>

partial

<<partial>>

new

<<new>>

filename

code file name

associated projectfile/directory

ComponentRealization

base types

Generalization, InterfaceRealization(s)

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Field

name

name

Property

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

readonly

readonly

volatile

<<volatile>>

unsafe

<<unsafe>>

new

<<new>>

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

default value

default

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Constant

name

name

Property <<const>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

new

<<new>>

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

default value

default

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Method

name

name

Operation

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

abstract

abstract

sealed

leaf

override

<<override>>

partial

<<partial>>

virtual

<<virtual>>

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

implemented interfaces

implements

type

direction

return

Parameter

Parameter

name

name

modifiers

ref

direction

inout

out

out

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

this

<<this>>

nullable

<<nullable>>

Type Parameter

name

name

Template Parameter

constraint

constraining classifier

predefined constraint

struct

<<ValueTypeConstraint>>

class

<<ReferenceTypeConstraint>>

new()

<<ConstructorConstraint>>

attribute sections

<<attributes>>

Constructor

name

name

Operation <<constructor>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Parameter

name

name

Parameter

modifiers

ref

direction

inout

out

out

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

Destructor

name

name

Operation <<destructor>>

modifiers

private

visibility

private

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Property

name

name

Operation <<property>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

abstract

abstract

sealed

leaf

override

<<override>>

virtual

<<virtual>>

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

type dimensions

multiplicity

nullable

<<nullable>>

Get Accessor

modifiers

internal

visibility

internal

<<GetAccessor>>

protected internal

protected internal

protected

protected

private

private

Set Accessor

modifiers

internal

visibility

internal

<<SetAccessor>>

protected internal

protected internal

protected

protected

private

private

Operator

name

name

Operation <<operator>>

modifiers

public

visibility

public

static

static

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

Parameter

name

name

modifier

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

Indexer

name (="this")

name (="this")

Operation <<indexer>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

abstract

abstract

sealed

leaf

override

<<override>>

virtual

<<virtual>>

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

Parameter

name

name

modifier

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

Get Accessor

modifiers

internal

visibility

internal

<<GetAccessor>>

protected internal

protected internal

protected

protected

private

private

Set Accessor

modifiers

internal

visibility

internal

<<SetAccessor>>

protected internal

protected internal

protected

protected

private

private

Event

name

name

Operation <<event>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

abstract

abstract

sealed

leaf

override

<<override>>

virtual

<<virtual>>

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

type dimensions

multiplicity

nullable

<<nullable>>

Add Accessor

<<AddRemoveAccessor>>

Remove Accessor

Type Parameter

name

name

Template Parameter

constraint

constraining classifier

predefined constraint

struct

<<ValueTypeConstraint>>

class

<<ReferenceTypeConstraint>>

new()

<<ConstructorConstraint>>

attribute sections

<<attributes>>

 

C# Struct

C#

UModel

Struct

name

name

Class   <<struct>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

unsafe

<<unsafe>>

partial

<<partial>>

new

<<new>>

filename

code file name

associated projectfile/directory

ComponentRealization

base types

InterfaceRealization(s)

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Field

name

name

Property

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

readonly

readonly

volatile

<<volatile>>

unsafe

<<unsafe>>

new

<<new>>

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

default value

default

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Constant

name

name

Property <<const>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

new

<<new>>

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

default value

default

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Fixedsize Buffer

name

name

Property <<fixed>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

unsafe

<<unsafe>>

new

<<new>>

type

type

type pointer

type modifier

nullable

<<nullable>>

buffer size

default

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Method

name

name

Operation

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

abstract

abstract

sealed

leaf

override

<<override>>

partial

<<partial>>

virtual

<<virtual>>

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

implemented interfaces

implements

type

direction

return

Parameter

Parameter

name

name

modifiers

ref

direction

inout

out

out

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

this

<<this>>

nullable

<<nullable>>

Type Parameter

name

name

Template Parameter

constraint

constraining classifier

predefined constraint

struct

<<ValueTypeConstraint>>

class

<<ReferenceTypeConstraint>>

new()

<<ConstructorConstraint>>

attribute sections

<<attributes>>

Constructor

name

name

Operation <<constructor>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Parameter

name

name

Parameter

modifiers

ref

direction

inout

out

out

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

Destructor

name

name

Operation <<destructor>>

modifiers

private

visibility

private

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Property

name

name

Operation <<property>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

abstract

abstract

sealed

leaf

override

<<override>>

virtual

<<virtual>>

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

type dimensions

multiplicity

nullable

<<nullable>>

Get Accessor

modifiers

internal

visibility

internal

<<GetAccessor>>

protected internal

protected internal

protected

protected

private

private

Set Accessor

modifiers

internal

visibility

internal

<<SetAccessor>>

protected internal

protected internal

protected

protected

private

private

Operator

name

name

Operation <<operator>>

modifiers

public

visibility

public

static

static

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

Parameter

name

name

modifier

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

Indexer

name (="this")

name (="this")

Operation <<indexer>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

abstract

abstract

sealed

leaf

override

<<override>>

virtual

<<virtual>>

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

Parameter

name

name

modifier

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

Get Accessor

modifiers

internal

visibility

internal

<<GetAccessor>>

protected internal

protected internal

protected

protected

private

private

Set Accessor

modifiers

internal

visibility

internal

<<SetAccessor>>

protected internal

protected internal

protected

protected

private

private

Event

name

name

Operation <<event>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

static

static

abstract

abstract

sealed

leaf

override

<<override>>

virtual

<<virtual>>

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

type dimensions

multiplicity

nullable

<<nullable>>

Add Accessor

<<AddRemoveAccessor>>

Remove Accessor

Type Parameter

name

name

Template Parameter

constraint

constraining classifier

predefined constraint

struct

<<ValueTypeConstraint>>

class

<<ReferenceTypeConstraint>>

new()

<<ConstructorConstraint>>

attribute sections


<<attributes>>

 

C# Interface

C#

UModel

Interface

name

name

Interface

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

unsafe

<<unsafe>>

partial

<<partial>>

new

<<new>>

filename

code file name

associated projectfile/directory

ComponentRealization

base types

Generalization(s)

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

Method

name

name

Operation

modifiers

public

visibility

public

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

Parameter

name

name

modifiers

ref

direction

inout

out

out

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

this

<<this>>

nullable

<<nullable>>

Type Parameter

name

name

Template Parameter

constraint

constraining classifier

predefined constraint

struct

<<ValueTypeConstraint>>

class

<<ReferenceTypeConstraint>>

new()

<<ConstructorConstraint>>

attribute sections

<<attributes>>

Property

name

name

Operation <<property>>

modifiers

public

visibility

public

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

type dimensions

multiplicity

nullable

<<nullable>>

Get Accessor

modifiers

internal

visibility

internal

<<GetAccessor>>

protected internal

protected internal

protected

protected

private

private

Set Accessor

modifiers

internal

visibility

internal

<<SetAccessor>>

protected internal

protected internal

protected

protected

private

private

Indexer

name (="this")

name (="this")

Operation <<indexer>>

modifiers

public

visibility

public

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

Parameter

name

name

modifier

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

Get Accessor

modifiers

internal

visibility

internal

<<GetAccessor>>

protected internal

protected internal

protected

protected

private

private

Set Accessor

modifiers

internal

visibility

internal

<<SetAccessor>>

protected internal

protected internal

protected

protected

private

private

Event

name

name

Operation <<event>>

modifiers

public

visibility

public

new

<<new>>

unsafe

<<unsafe>>

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

type dimensions

multiplicity

nullable

<<nullable>>

Add Accessor

<<AddRemoveAccessor>>

Remove Accessor

Type Parameter

name

name

Template Parameter

constraint

constraining classifier

predefined constraint

struct

<<ValueTypeConstraint>>

class

<<ReferenceTypeConstraint>>

new()

<<ConstructorConstraint>>

attribute sections

<<attributes>>

 

C# Delegate

C#

UModel

Delegate

name

name

Class <<delegate>>

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

unsafe

<<unsafe>>

new

<<new>>

filename

code file name

associated projectfile/directory

ComponentRealization

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

type

direction

return

Parameter

Operation

Parameter

name

name

modifiers

ref

direction

inout

out

out

params

varArgList

type

type

type dimensions

multiplicity

type pointer

type modifier

nullable

<<nullable>>

Type Parameter

name



name



Template Parameter

constraint



constraining classifier



predefined constraint

struct


<<ValueTypeConstraint>>



class


<<ReferenceTypeConstraint>>



new()


<<ConstructorConstraint>>


attribute sections



<<attributes>>



 

C# Enum

C#

UModel

Enum

name

name

Enumeration

modifiers

internal

visibility

package

protected internal

protected <<internal>>

public

public

protected

protected

private

private

new

<<new>>

filename

code file name

associated projectfile/directory

ComponentRealization

base type

type

<<BaseType>>

attribute sections

<<attributes>>


doc comments

Comment(->Documentation)


Enum Constant

name

name

Enumeration Literal

default value

default

attribute sections

<<attributes>>

doc comments

Comment(->Documentation)

 

C# Parameterized Type

C#

UModel

Parameterized Type

Anonymous Bound Element


© 2019 Altova GmbH