Exemple #1
0
 // Resolve this
 public override void ResolveMember(
     TypeEntry symDefiningClass, 
     ISemanticResolver s,
     ICLRtypeProvider provider
 )
 {
     m_tType.ResolveType(s);
     
 // Spoof bodies
             
     if (HasGet)
     {                        
         m_declGet.ResolveMember(symDefiningClass, s, null);
         m_declGet.Symbol.IsSpecialName = true;
     }
     if (HasSet)
     {   
         m_declSet.ResolveMember(symDefiningClass, s, null);
         m_declSet.Symbol.IsSpecialName = true;
     }
 
 // Create a symbol for the property
     m_symbol = new SymbolEngine.PropertyExpEntry(symDefiningClass, this, m_declGet, m_declSet);
     
     s.GetCurrentContext().AddSymbol(m_symbol);
 }
Exemple #2
0
 public PropertyExp(
     PropertyExpEntry symbol,
     Exp expInstance // null for statics
     )
 {
     Debug.Assert(symbol != null);
     m_symbol = symbol;
     m_expInstance = expInstance;
 }