Ejemplo n.º 1
0
 bool Microsoft.Expression.DesignModel.Metadata.ICachedMemberInfo.Refresh()
 {
     System.Reflection.FieldInfo fieldInfo = PlatformTypeHelper.GetFieldInfo(base.DeclaringType.NearestResolvedType.RuntimeType, this.Name);
     if (fieldInfo == null)
     {
         this.implementation = FieldReferenceStep.UndefinedFieldImplementation.Instance;
     }
     else
     {
         this.implementation = new FieldReferenceStep.FieldImplementation(this, fieldInfo);
     }
     return(this.implementation.IsResolved);
 }
Ejemplo n.º 2
0
 private FieldReferenceStep(ITypeResolver typeResolver, IType declaringType, System.Reflection.FieldInfo fieldInfo) : base(declaringType, fieldInfo.Name, PlatformTypeHelper.GetFieldTypeId(typeResolver, fieldInfo), PropertySortValue.NoValue)
 {
     this.implementation = new FieldReferenceStep.FieldImplementation(this, fieldInfo);
 }