public MemberInfoWrapper(ISymbol member, MetadataLoadContext metadataLoadContext)
 {
     _member = member;
     _metadataLoadContext = metadataLoadContext;
 }
Example #2
0
 public ParameterWrapper(IParameterSymbol parameter, MetadataLoadContext metadataLoadContext)
 {
     _parameter           = parameter;
     _metadataLoadContext = metadataLoadContext;
 }
 public MethodInfoWrapper(IMethodSymbol method, MetadataLoadContext metadataLoadContext)
 {
     _method = method;
     _metadataLoadContext = metadataLoadContext;
 }
Example #4
0
 public TypeWrapper(ITypeSymbol namedTypeSymbol, MetadataLoadContext metadataLoadContext)
 {
     _typeSymbol          = namedTypeSymbol;
     _metadataLoadContext = metadataLoadContext;
 }
 public abstract Assembly Resolve(MetadataLoadContext context, AssemblyName assemblyName = null);
 public ConstructorInfoWrapper(IMethodSymbol ctor, MetadataLoadContext metadataLoadContext)
 {
     _ctor = ctor;
     _metadataLoadContext = metadataLoadContext;
 }
 public AssemblyWrapper(IAssemblySymbol assembly, MetadataLoadContext metadataLoadContext)
 {
     Symbol = assembly;
     _metadataLoadContext = metadataLoadContext;
 }
 public PropertyWrapper(IPropertySymbol property, MetadataLoadContext metadataLoadContext)
 {
     _property            = property;
     _metadataLoadContext = metadataLoadContext;
 }
Example #9
0
 public FieldInfoWrapper(IFieldSymbol parameter, MetadataLoadContext metadataLoadContext)
 {
     _field = parameter;
     _metadataLoadContext = metadataLoadContext;
 }
 public static ParameterInfo AsParameterInfo(this IParameterSymbol parameterSymbol, MetadataLoadContext metadataLoadContext) => (parameterSymbol == null ? null : new ParameterInfoWrapper(parameterSymbol, metadataLoadContext)) !;
 public static Type AsType(this ITypeSymbol typeSymbol, MetadataLoadContext metadataLoadContext) => (typeSymbol == null ? null : new TypeWrapper(typeSymbol, metadataLoadContext)) !;
 public static MethodInfo AsMethodInfo(this IMethodSymbol methodSymbol, MetadataLoadContext metadataLoadContext) => (methodSymbol == null ? null : new MethodInfoWrapper(methodSymbol, metadataLoadContext)) !;