MethodDef LookupOverride(MethodOverride o) {
				MethodAndOverride info;
				if (!methodOverrides.TryGetValue(o.MethodDeclaration, out info))
					return null;
				if (!comparer.Equals(info.MethodDeclaration.DeclaringType, o.MethodDeclaration.DeclaringType))
					return null;
				return info.TargetMethod;
			}
Example #2
0
 void Load(MethodOverride obj)
 {
     Add(obj.MethodBody);
     Add(obj.MethodDeclaration);
 }
		public MethodOverrideOptions(MethodOverride mo) {
			MethodBody = mo.MethodBody;
			MethodDeclaration = mo.MethodDeclaration;
		}
Example #4
0
 void Add(MethodOverride mo)
 {
     // It's a struct so can't be null
     Push(mo.MethodBody);
     Push(mo.MethodDeclaration);
 }
Example #5
0
 void Add(MethodOverride mo)
 {
     // It's a struct so can't be null
     Push(mo.MethodBody);
     Push(mo.MethodDeclaration);
 }
Example #6
0
		void InitializeFrom(MethodOverrideOptions options) {
			methodOverride = options.Create();
		}