System.Web.Compilation.BaseCompiler.CheckPartialBaseFields C# (CSharp) Méthode

CheckPartialBaseFields() private méthode

private CheckPartialBaseFields ( Type type, Type baseType ) : bool
type System.Type
baseType System.Type
Résultat bool
		internal bool CheckPartialBaseFields (Type type, Type baseType)
		{
			bool rebuild = false;

			foreach (FieldInfo baseInfo in baseType.GetFields (replaceableFlags)) {
				if (baseInfo.IsPrivate)
					continue;

				FieldInfo typeInfo = type.GetField (baseInfo.Name, replaceableFlags);

				if (typeInfo != null && typeInfo.DeclaringType == type) {
					partialNameOverride [typeInfo.Name] = true;
					rebuild = true;
				}
			}

			return rebuild;
		}