public static void CreateWriteDelegates() { writeVertexAttributesDelegate = (WriteVertexAttributesDelegate)CreateWriteDelegate( typeof(TVertex), typeof(WriteVertexAttributesDelegate)); writeEdgeAttributesDelegate = (WriteEdgeAttributesDelegate)CreateWriteDelegate( typeof(TEdge), typeof(WriteEdgeAttributesDelegate) ); }
static WriteDelegateCompiler() { VertexAttributesWriter = (WriteVertexAttributesDelegate)CreateWriteDelegate( typeof(TVertex), typeof(WriteVertexAttributesDelegate)); EdgeAttributesWriter = (WriteEdgeAttributesDelegate)CreateWriteDelegate( typeof(TEdge), typeof(WriteEdgeAttributesDelegate) ); GraphAttributesWriter = (WriteGraphAttributesDelegate)CreateWriteDelegate( typeof(TGraph), typeof(WriteGraphAttributesDelegate) ); }