Example #1
0
 /// <summary>
 /// Gets the implied default constructor statements of the given code member
 /// </summary>
 /// <param name="item">The code member</param>
 /// <param name="createIfNecessary">True, if the collection of implied constructor statements should be created if not yet existing</param>
 /// <returns>The collection of implied constructor statements</returns>
 public static ICollection <CodeStatement> ImpliedConstructorStatementsInternal(CodeTypeMember item, bool createIfNecessary)
 {
     return(CodeDomHelper.GetUserCollection <CodeStatement>(item, ConstructorStatementsKey, createIfNecessary));
 }
Example #2
0
 /// <summary>
 /// Gets the dependent members of a code member
 /// </summary>
 /// <param name="item">The code member</param>
 /// <param name="createIfNecessary">True, if the collection of dependent members should be created if not yet existing</param>
 /// <returns>The collection of dependent members</returns>
 public static ICollection <CodeTypeMember> DependentMembers(this CodeTypeMember item, bool createIfNecessary)
 {
     return(CodeDomHelper.GetUserCollection <CodeTypeMember>(item, DependentMembersKey, createIfNecessary));
 }