IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IKVM.Runtime.SymbolExtensions Class Reference

Static Public Member Functions

static Assembly AsReflection (this IAssemblySymbol symbol)
 
static Type AsReflection (this ITypeSymbol symbol)
 
static ConstructorInfo AsReflection (this IConstructorSymbol symbol)
 
static MethodInfo AsReflection (this IMethodSymbol symbol)
 
static FieldInfo AsReflection (this IFieldSymbol symbol)
 
static PropertyInfo AsReflection (this IPropertySymbol symbol)
 

Detailed Description

Definition at line 18 of file SymbolExtensions.cs.

Member Function Documentation

◆ AsReflection() [1/6]

static Assembly IKVM.Runtime.SymbolExtensions.AsReflection ( this IAssemblySymbol symbol)
static

Definition at line 21 of file SymbolExtensions.cs.

22 {
23 if (symbol == null)
24 return null;
25
26#if IMPORTER || EXPORTER
27 return ((IkvmReflectionAssemblySymbol)symbol).UnderlyingAssembly;
28#else
29 return ((ReflectionAssemblySymbol)symbol).UnderlyingAssembly;
30#endif
31 }

◆ AsReflection() [2/6]

static ConstructorInfo IKVM.Runtime.SymbolExtensions.AsReflection ( this IConstructorSymbol symbol)
static

Definition at line 45 of file SymbolExtensions.cs.

46 {
47 if (symbol == null)
48 return null;
49
50#if IMPORTER || EXPORTER
51 return ((IkvmReflectionConstructorSymbol)symbol).UnderlyingConstructor;
52#else
53 return ((ReflectionConstructorSymbol)symbol).UnderlyingConstructor;
54#endif
55 }

◆ AsReflection() [3/6]

static FieldInfo IKVM.Runtime.SymbolExtensions.AsReflection ( this IFieldSymbol symbol)
static

Definition at line 69 of file SymbolExtensions.cs.

70 {
71 if (symbol == null)
72 return null;
73
74#if IMPORTER || EXPORTER
75 return ((IkvmReflectionFieldSymbol)symbol).UnderlyingField;
76#else
77 return ((ReflectionFieldSymbol)symbol).UnderlyingField;
78#endif
79 }

◆ AsReflection() [4/6]

static MethodInfo IKVM.Runtime.SymbolExtensions.AsReflection ( this IMethodSymbol symbol)
static

Definition at line 57 of file SymbolExtensions.cs.

58 {
59 if (symbol == null)
60 return null;
61
62#if IMPORTER || EXPORTER
63 return ((IkvmReflectionMethodSymbol)symbol).UnderlyingMethod;
64#else
65 return ((ReflectionMethodSymbol)symbol).UnderlyingMethod;
66#endif
67 }

◆ AsReflection() [5/6]

static PropertyInfo IKVM.Runtime.SymbolExtensions.AsReflection ( this IPropertySymbol symbol)
static

Definition at line 81 of file SymbolExtensions.cs.

82 {
83 if (symbol == null)
84 return null;
85
86#if IMPORTER || EXPORTER
87 return ((IkvmReflectionPropertySymbol)symbol).UnderlyingProperty;
88#else
89 return ((ReflectionPropertySymbol)symbol).UnderlyingProperty;
90#endif
91 }

◆ AsReflection() [6/6]

static Type IKVM.Runtime.SymbolExtensions.AsReflection ( this ITypeSymbol symbol)
static

Definition at line 33 of file SymbolExtensions.cs.

34 {
35 if (symbol == null)
36 return null;
37
38#if IMPORTER || EXPORTER
39 return ((IkvmReflectionTypeSymbol)symbol).UnderlyingType;
40#else
41 return ((ReflectionTypeSymbol)symbol).UnderlyingType;
42#endif
43 }

The documentation for this class was generated from the following file: