AddMember() public method

public AddMember ( MemberCore symbol ) : bool
symbol MemberCore
return bool
コード例 #1
0
ファイル: class.cs プロジェクト: agallero/mono
		public TypeContainer AddTypeContainer (TypeContainer tc)
		{
			if (!AddMemberType (tc))
				return tc;

			var tparams = tc.MemberName.TypeParameters;
			if (tparams != null) {
				for (int i = 0; i < tparams.Count; ++i) {
					var tp = tparams[i];
					if (tp.MemberName == null)
						continue;

					tc.AddMember (tp, tp.Name);
				}
			}

			if (types == null)
				types = new List<TypeContainer> ();

			types.Add (tc);
			return tc;
		}