Exemple #1
0
        //
        // Get a prefix from member type for XML documentation (used
        // to formalize cref target name).
        //
        static string GetMemberDocHead(MemberSpec type)
        {
            if (type is FieldSpec)
            {
                return("F:");
            }
            if (type is MethodSpec)
            {
                return("M:");
            }
            if (type is EventSpec)
            {
                return("E:");
            }
            if (type is PropertySpec)
            {
                return("P:");
            }
            if (type is TypeSpec)
            {
                return("T:");
            }

            throw new NotImplementedException(type.GetType().ToString());
        }
Exemple #2
0
		//
		// Get a prefix from member type for XML documentation (used
		// to formalize cref target name).
		//
		static string GetMemberDocHead (MemberSpec type)
		{
			if (type is FieldSpec)
				return "F:";
			if (type is MethodSpec)
				return "M:";
			if (type is EventSpec)
				return "E:";
			if (type is PropertySpec)
				return "P:";
			if (type is TypeSpec)
				return "T:";

			throw new NotImplementedException (type.GetType ().ToString ());
		}