Exemple #1
0
		public void VisitThrow(Throw t)
		{
			Unused.Value = t;

			if (m_checkThrows)
			{
				m_doesThrow = true;
			}
		}
Exemple #2
0
		public void VisitThrow(Throw thrw)
		{
			if (m_offset < 0)
			{
				NewObj newObj = m_info.Instructions[thrw.Index - 1] as NewObj;
				if (newObj != null)
				{
					string name = newObj.Ctor.ToString();
					if (name.Contains("System.Exception::.ctor") || name.Contains("System.SystemException::.ctor") || name.Contains("System.ApplicationException::.ctor"))
					{
						m_offset = thrw.Untyped.Offset;
						Log.DebugLine(this, "bad throw at {0:X2}", m_offset); 
					}
				}
			}
		}
		public void VisitThrow(Throw thrw)
		{
			if (m_offset < 0)
			{
				NewObj newObj = m_info.Instructions[thrw.Index - 1] as NewObj;
				if (newObj != null)
				{
					string name = newObj.Ctor.DeclaringType.Name;
					if (Array.IndexOf(m_badNames, name) >= 0)
					{
						m_offset = thrw.Untyped.Offset;
						Log.DebugLine(this, "reserved throw at {0:X2}", m_offset); 
					}
				}
			}
		}
Exemple #4
0
		public void VisitThrow(Throw t)
		{
			Unused.Value = t;

			if (m_disposable)
			{
				if (m_checkForThrows)
				{
					m_disposeThrows = true;
				}
			}
		}