public void WriteXml(XmlWriter xmlWriter) { xmlWriter.WriteStartElement("member"); xmlWriter.WriteAttributeString("name", Name); xmlWriter.WriteAttributeString("kind", Kind.ToString()); xmlWriter.WriteAttributeString("type", Type); if (Obsolete) { xmlWriter.WriteAttributeString("obsolete", Obsolete.ToString()); } if (ObsoleteMessage != null) { xmlWriter.WriteAttributeString("obsoleteMessage", ObsoleteMessage); } foreach (var change in Changes) { change.WriteXml(xmlWriter); } foreach (var parameter in Parameters) { parameter.WriteXml(xmlWriter); } xmlWriter.WriteEndElement(); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + Fields.GetHashCode(); hash = hash * 23 + Properties.GetHashCode(); hash = hash * 23 + Methods.GetHashCode(); hash = hash * 23 + Constructors.GetHashCode(); hash = hash * 23 + Gettable.GetHashCode(); hash = hash * 23 + Settable.GetHashCode(); hash = hash * 23 + Indexers.GetHashCode(); hash = hash * 23 + Events.GetHashCode(); hash = hash * 23 + Inherited.GetHashCode(); hash = hash * 23 + Targeted.GetHashCode(); hash = hash * 23 + NonTargeted.GetHashCode(); hash = hash * 23 + Public.GetHashCode(); hash = hash * 23 + NonPublic.GetHashCode(); hash = hash * 23 + ReadOnly.GetHashCode(); hash = hash * 23 + WriteOnly.GetHashCode(); hash = hash * 23 + Extensions.GetHashCode(); hash = hash * 23 + Operators.GetHashCode(); hash = hash * 23 + Conversions.GetHashCode(); hash = hash * 23 + Parameters.GetHashCode(); hash = hash * 23 + Obsolete.GetHashCode(); hash = hash * 23 + OpenConstructedGeneric.GetHashCode(); hash = hash * 23 + TypeInitializers.GetHashCode(); return(hash); } }
protected override void afterPopulateProps() { afterPropertySetPopulateProps(); ApprovedForReceiving.setReadOnly( false == _CswNbtResources.Permit.can( CswEnumNbtActionName.Material_Approval ), SaveToDb : false ); ContainerExpirationLocked.setReadOnly( false == _CswNbtResources.Permit.can( CswEnumNbtActionName.Container_Expiration_Lock ), SaveToDb : false ); _toggleButtonVisibility(); _toggleConstituentProps(); Obsolete.SetOnPropChange( OnObsoletePropChange ); }
/// <summary> /// Check if file was changed, raise Obsolete event if was. /// </summary> /// <returns>True if FileBasedOnlineSource.Update event should be raised.</returns> public bool CheckIfChanged() { var fileInfo = new FileInfo(Filename); DateTime?value = fileInfo.Exists ? fileInfo.LastWriteTime : default(DateTime); if (value != _lastDateTime) { _lastDateTime = value; var hidden = Information?.Hidden == true; Reload(); Obsolete?.Invoke(this, EventArgs.Empty); return(hidden != (Information?.Hidden == true)); } return(false); }
internal Info(string sceneName, Obsolete obsolete = Obsolete.No) { SceneName = sceneName; Obsolete = obsolete; switch (Obsolete) { case Obsolete.No: State = isLoaded ? State.Loaded : State.Unloaded; Assert.IsTrue(SceneUtility.GetBuildIndexByScenePath(SceneName) >= 0, "Scene \"" + sceneName + "\" has no build index"); break; case Obsolete.Yes: State = State.Unloaded; Assert.IsNotNull(AllBridges); // Fetch AllBridges at least once, which ensures no bridge refers to obsolete chunks. break; } }
public string WriteObjectConstructor() { var fields = string.Join(",", Fields.Select(field => field.WriteConstructor())); List <string> parameters = new List <string>() { Name.WrapInQuotes(), Unique.ToBoolString(), $"IdfObjectFormat.{Format}", Obsolete.ToBoolString(), MinNumberOfFields == null ? "null" : MinNumberOfFields.Value.ToString(), Required.ToBoolString(), $"new List<IdfField> {{{fields}}}", Extensible.ToBoolString(), TotalNumberOfDefinedFields.ToString() }; return($"new IdfObject({string.Join(",", parameters)} )"); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + NoControlInput.GetHashCode(); hash = hash * 23 + SingleControlInput.GetHashCode(); hash = hash * 23 + MultipleControlInputs.GetHashCode(); hash = hash * 23 + NoValueInput.GetHashCode(); hash = hash * 23 + SingleValueInput.GetHashCode(); hash = hash * 23 + MultipleValueInputs.GetHashCode(); hash = hash * 23 + NoControlOutput.GetHashCode(); hash = hash * 23 + SingleControlOutput.GetHashCode(); hash = hash * 23 + MultipleControlOutputs.GetHashCode(); hash = hash * 23 + NoValueOutput.GetHashCode(); hash = hash * 23 + SingleValueOutput.GetHashCode(); hash = hash * 23 + MultipleValueOutputs.GetHashCode(); hash = hash * 23 + Self.GetHashCode(); hash = hash * 23 + Events.GetHashCode(); hash = hash * 23 + Literals.GetHashCode(); hash = hash * 23 + Variables.GetHashCode(); hash = hash * 23 + Members.GetHashCode(); hash = hash * 23 + Nesters.GetHashCode(); hash = hash * 23 + Expose.GetHashCode(); hash = hash * 23 + Obsolete.GetHashCode(); hash = hash * 23 + AllowSelfNestedGraph.GetHashCode(); hash = hash * 23 + (CompatibleInputType?.GetHashCode() ?? 0); hash = hash * 23 + (CompatibleOutputType?.GetHashCode() ?? 0); hash = hash * 23 + GraphHashCode; return(hash); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + Matching.GetHashCode(); foreach (var type in types) { if (type != null) { hash = hash * 23 + type.GetHashCode(); } } hash = hash * 23 + Value.GetHashCode(); hash = hash * 23 + Reference.GetHashCode(); hash = hash * 23 + Classes.GetHashCode(); hash = hash * 23 + Interfaces.GetHashCode(); hash = hash * 23 + Structs.GetHashCode(); hash = hash * 23 + Enums.GetHashCode(); hash = hash * 23 + Delegates.GetHashCode(); hash = hash * 23 + Public.GetHashCode(); hash = hash * 23 + NonPublic.GetHashCode(); hash = hash * 23 + Abstract.GetHashCode(); hash = hash * 23 + Generic.GetHashCode(); hash = hash * 23 + OpenConstructedGeneric.GetHashCode(); hash = hash * 23 + Static.GetHashCode(); hash = hash * 23 + Sealed.GetHashCode(); hash = hash * 23 + Nested.GetHashCode(); hash = hash * 23 + Primitives.GetHashCode(); hash = hash * 23 + Object.GetHashCode(); hash = hash * 23 + NonSerializable.GetHashCode(); hash = hash * 23 + Obsolete.GetHashCode(); hash = hash * 23 + GenericParameterAttributeFlags.GetHashCode(); return(hash); } }
public void Method (Obsolete o) { }
public static void Main() { Obsolete.MethodError(); }
public void Method(Obsolete o) { }
protected override void afterPopulateProps() { base.afterPopulateProps(); MethodNo.SetOnPropChange(_onAfterMethodNumberChange); Obsolete.SetOnPropChange(_onAfterObsoleteChecked); }