private RenderTreeFrame(int sequence, int regionSubtreeLength) : this() { Sequence = sequence; FrameType = RenderTreeFrameType.Region; RegionSubtreeLength = regionSubtreeLength; }
private RenderTreeFrame(int sequence, string textContent) : this() { FrameType = RenderTreeFrameType.Text; Sequence = sequence; TextContent = textContent; }
// If we need further constructors whose signatures clash with the patterns above, // we can add extra args to this general-purpose one. private RenderTreeFrame(int sequence, RenderTreeFrameType frameType, string markupContent) : this() { FrameType = frameType; Sequence = sequence; MarkupContent = markupContent; }
private RenderTreeFrame(int sequence, Action <object> componentReferenceCaptureAction, int parentFrameIndex) : this() { FrameType = RenderTreeFrameType.ComponentReferenceCapture; Sequence = sequence; ComponentReferenceCaptureAction = componentReferenceCaptureAction; ComponentReferenceCaptureParentFrameIndex = parentFrameIndex; }
private RenderTreeFrame(int sequence, Action <ElementReference> elementReferenceCaptureAction, string elementReferenceCaptureId) : this() { FrameType = RenderTreeFrameType.ElementReferenceCapture; Sequence = sequence; ElementReferenceCaptureAction = elementReferenceCaptureAction; ElementReferenceCaptureId = elementReferenceCaptureId; }
private RenderTreeFrame(int sequence, string attributeName, object attributeValue) : this() { FrameType = RenderTreeFrameType.Attribute; Sequence = sequence; AttributeName = attributeName; AttributeValue = attributeValue; }
private RenderTreeFrame(int sequence, Type componentType, int componentSubtreeLength) : this() { FrameType = RenderTreeFrameType.Component; Sequence = sequence; ComponentType = componentType; ComponentSubtreeLength = componentSubtreeLength; }
private RenderTreeFrame(int sequence, string elementName, int elementSubtreeLength) : this() { FrameType = RenderTreeFrameType.Element; Sequence = sequence; ElementName = elementName; ElementSubtreeLength = elementSubtreeLength; }
private RenderTreeFrame(int sequence, int elementSubtreeLength, string elementName, object elementKey) : this() { Sequence = sequence; FrameType = RenderTreeFrameType.Element; ElementSubtreeLength = elementSubtreeLength; ElementName = elementName; ElementKey = elementKey; }
private RenderTreeFrame(int sequence, string attributeName, object attributeValue, int eventHandlerId) : this() { FrameType = RenderTreeFrameType.Attribute; Sequence = sequence; AttributeName = attributeName; AttributeValue = attributeValue; AttributeEventHandlerId = eventHandlerId; }
private RenderTreeFrame(int sequence, string attributeName, object attributeValue, ulong attributeEventHandlerId, string attributeEventUpdatesAttributeName) : this() { FrameType = RenderTreeFrameType.Attribute; Sequence = sequence; AttributeName = attributeName; AttributeValue = attributeValue; AttributeEventHandlerId = attributeEventHandlerId; AttributeEventUpdatesAttributeName = attributeEventUpdatesAttributeName; }
private RenderTreeFrame(int sequence, bool isMarkup, string textOrMarkup) : this() { Sequence = sequence; if (isMarkup) { FrameType = RenderTreeFrameType.Markup; MarkupContent = textOrMarkup; } else { FrameType = RenderTreeFrameType.Text; TextContent = textOrMarkup; } }
private RenderTreeFrame(int sequence, int componentSubtreeLength, Type componentType, ComponentState componentState, object componentKey) : this() { Sequence = sequence; FrameType = RenderTreeFrameType.Component; ComponentSubtreeLength = componentSubtreeLength; ComponentType = componentType; ComponentKey = componentKey; if (componentState != null) { ComponentState = componentState; ComponentId = componentState.ComponentId; } }
private RenderTreeFrame(int sequence, int componentSubtreeLength, [DynamicallyAccessedMembers(LinkerFlags.Component)] Type componentType, ComponentState componentState, object componentKey) : this() { SequenceField = sequence; FrameTypeField = RenderTreeFrameType.Component; ComponentSubtreeLengthField = componentSubtreeLength; ComponentTypeField = componentType; ComponentKeyField = componentKey; if (componentState != null) { ComponentStateField = componentState; ComponentIdField = componentState.ComponentId; } }