Exemple #1
0
        private void EnsureReservedMemberIsLoaded(string name)
        {
            string str;

            if ((((name.Length >= 6) && ((name[0] == 'p') || (name[0] == 'P'))) && ((name[1] == 's') || (name[1] == 'S'))) && ((str = name.ToLowerInvariant()) != null))
            {
                if (!(str == "psbase"))
                {
                    if (!(str == "psadapted"))
                    {
                        if (!(str == "psextended"))
                        {
                            if (!(str == "psobject"))
                            {
                                if (str == "pstypenames")
                                {
                                    ReservedNameMembers.GeneratePSTypeNames(this.mshOwner);
                                }
                                return;
                            }
                            ReservedNameMembers.GeneratePSObjectMemberSet(this.mshOwner);
                            return;
                        }
                        ReservedNameMembers.GeneratePSExtendedMemberSet(this.mshOwner);
                        return;
                    }
                }
                else
                {
                    ReservedNameMembers.GeneratePSBaseMemberSet(this.mshOwner);
                    return;
                }
                ReservedNameMembers.GeneratePSAdaptedMemberSet(this.mshOwner);
            }
        }
Exemple #2
0
 private void GenerateAllReservedMembers()
 {
     if (!this.mshOwner.hasGeneratedReservedMembers)
     {
         this.mshOwner.hasGeneratedReservedMembers = true;
         ReservedNameMembers.GeneratePSExtendedMemberSet(this.mshOwner);
         ReservedNameMembers.GeneratePSBaseMemberSet(this.mshOwner);
         ReservedNameMembers.GeneratePSObjectMemberSet(this.mshOwner);
         ReservedNameMembers.GeneratePSAdaptedMemberSet(this.mshOwner);
         ReservedNameMembers.GeneratePSTypeNames(this.mshOwner);
     }
 }