if ( frames . Any ( f => f . GetMethod ( ) . Name == m ) )

// actual code that sets values which in turn might (or might not) call this method again