Beispiel #1
0
 private ProxyProvidedParameterInfo(RdProvidedParameterInfo parameterInfo, int typeProviderId,
                                    TypeProvidersContext typeProvidersContext, ProvidedTypeContextHolder context) : base(null, context.Context)
 {
     myParameterInfo        = parameterInfo;
     myTypeProviderId       = typeProviderId;
     myTypeProvidersContext = typeProvidersContext;
     myContext       = context;
     RawDefaultValue = myParameterInfo.RawDefaultValue.Unbox();
 }
Beispiel #2
0
 public static ProxyProvidedParameterInfo Create(RdProvidedParameterInfo parameter, int typeProviderId,
                                                 TypeProvidersContext typeProvidersContext, ProvidedTypeContextHolder context) =>
 parameter == null
 ? null
 : new ProxyProvidedParameterInfo(parameter, typeProviderId, typeProvidersContext, context);