protected TGraph CreateGraph <TGraph>() where TGraph : PXGraph, new() { TGraph result = new TGraph(); result.Clear(); return(result); }
private static TGraph CreateSpecGraph <TGraph>() where TGraph : PXGraph, new() { TGraph graph = new TGraph(); graph.Clear(); return(graph); }
internal XmlEdgeList([NotNull] TGraph graph) { if (graph == null) { throw new ArgumentNullException(nameof(graph)); } _graph = graph; }
public Subscription( IObserver <BindingResultChange <TResult> > observer, IRootBindingPrototype <TGraph, TResult> prototype, TGraph graph) { _observer = observer; _binding = prototype.Clone(); _binding.ResultChanged += OnBindingResultChanged; _binding.Bind(graph); }
public ReaderWorker( [NotNull] XmlReader reader, [NotNull] TGraph graph, [NotNull] IdentifiableVertexFactory <TVertex> vertexFactory, [NotNull] IdentifiableEdgeFactory <TVertex, TEdge> edgeFactory) { Debug.Assert(reader != null); Debug.Assert(graph != null); Debug.Assert(vertexFactory != null); Debug.Assert(edgeFactory != null); _reader = reader; _graph = graph; _vertexFactory = vertexFactory; _edgeFactory = edgeFactory; }
public WriterWorker( [NotNull] GraphMLSerializer <TVertex, TEdge, TGraph> serializer, [NotNull] XmlWriter writer, [NotNull] TGraph graph, [NotNull] VertexIdentity <TVertex> vertexIdentities, [NotNull] EdgeIdentity <TVertex, TEdge> edgeIdentities) { Debug.Assert(serializer != null); Debug.Assert(writer != null); Debug.Assert(graph != null); Debug.Assert(vertexIdentities != null); Debug.Assert(edgeIdentities != null); _serializer = serializer; _writer = writer; _graph = graph; _vertexIdentities = vertexIdentities; _edgeIdentities = edgeIdentities; }
public WriterWorker( GraphMLSerializer <TVertex, TEdge, TGraph> serializer, XmlWriter writer, TGraph visitedGraph, VertexIdentity <TVertex> vertexIdentities, EdgeIdentity <TVertex, TEdge> edgeIdentities) { Contract.Requires(serializer != null); Contract.Requires(writer != null); Contract.Requires(visitedGraph != null); Contract.Requires(vertexIdentities != null); Contract.Requires(edgeIdentities != null); this.serializer = serializer; this.writer = writer; this.visitedGraph = visitedGraph; this.vertexIdentities = vertexIdentities; this.edgeIdentities = edgeIdentities; }
public ReaderWorker( GraphMLDeserializer <TVertex, TEdge, TGraph> serializer, XmlReader reader, TGraph visitedGraph, IdentifiableVertexFactory <TVertex> vertexFactory, IdentifiableEdgeFactory <TVertex, TEdge> edgeFactory ) { Contract.Requires(serializer != null); Contract.Requires(reader != null); Contract.Requires(visitedGraph != null); Contract.Requires(vertexFactory != null); Contract.Requires(edgeFactory != null); this.serializer = serializer; this.reader = reader; this.visitedGraph = visitedGraph; this.vertexFactory = vertexFactory; this.edgeFactory = edgeFactory; }
public static object GetValueExt <TSelf>(TGraph graph, TTable row) where TSelf : PXFieldAttachedTo <TTable> .By <TGraph> .As <TValue> => ((PXFieldState)graph.Caches <TTable>().GetStateExt(row, typeof(TSelf).Name.LastSegment('+')))?.Value;
public static object GetValueExt <TSelf>(TGraph graph, TTable row) where TSelf : As <TValue> => ((PXFieldState)graph.Caches <TTable>().GetStateExt(row, typeof(TSelf).Name.Split('+').Last()))?.Value;
public static TValue GetValue <TSelf>(TGraph graph, TTable row) where TSelf : As <TValue> => graph.GetExtension <TSelf>().GetValue(row);
public static String GetValue(TGraph graph, TTable row) => GetValue <TSelf>(graph, row);
public static DateTime?GetValue(TGraph graph, TTable row) => GetValue <TSelf>(graph, row);
public static decimal?GetValue(TGraph graph, TTable row) => GetValue <TSelf>(graph, row);
public static int?GetValue(TGraph graph, TTable row) => GetValue <TSelf>(graph, row);
internal readonly HashSet <TNode> ResolvedNodeSet = new HashSet <TNode>(); // Used to keep track of the nodes that have already been walked by the walker. internal TransformationState(TGraph graph) { this.Graph = graph; }
public static TValue GetValue <TSelf>(TGraph graph, TTable row) where TSelf : PXFieldAttachedTo <TTable> .By <TGraph> .As <TValue> => graph.GetExtension <TSelf>().GetValue(row);
internal XmlEdgeList(TGraph graph) { Contract.Requires(graph != null); this.graph = graph; }