public override PSMemberInfo Copy() { PSCodeProperty destiny = new PSCodeProperty(base.name, this.getterCodeReference, this.setterCodeReference); base.CloneBaseProperties(destiny); return(destiny); }
private void GenerateMshTypeNames() { if (this.mshOwner.InstanceMembers["pstypenames"] != null) { return; } PSCodeProperty psCodeProperty = new PSCodeProperty("pstypenames", PSMemberInfoIntegratingCollection <T> .typeNamesMethodInfo); psCodeProperty.shouldSerialize = false; psCodeProperty.instance = this.mshOwner; psCodeProperty.isHidden = true; psCodeProperty.isReservedMember = true; this.mshOwner.InstanceMembers.Add((PSMemberInfo)psCodeProperty); }
internal static void GeneratePSTypeNames(object obj) { PSObject obj2 = PSObject.AsPSObject(obj); if (obj2.InstanceMembers["pstypenames"] == null) { PSCodeProperty member = new PSCodeProperty("pstypenames", CachedReflectionInfo.ReservedNameMembers_PSTypeNames) { shouldSerialize = false, instance = obj2, isHidden = true, isReservedMember = true }; obj2.InstanceMembers.Add(member); } }
internal static void GeneratePSTypeNames(object obj) { PSObject obj2 = PSObject.AsPSObject(obj); if (obj2.InstanceMembers["pstypenames"] == null) { PSCodeProperty member = new PSCodeProperty("pstypenames", CachedReflectionInfo.ReservedNameMembers_PSTypeNames) { shouldSerialize = false, instance = obj2, isHidden = true, isReservedMember = true }; obj2.InstanceMembers.Add(member); } }
public override PSMemberInfo Copy() { PSCodeProperty destiny = new PSCodeProperty(base.name, this.getterCodeReference, this.setterCodeReference); base.CloneBaseProperties(destiny); return destiny; }