コード例 #1
0
 public static void CreateWriteDelegates()
 {
     writeVertexAttributesDelegate =
         (WriteVertexAttributesDelegate)CreateWriteDelegate(
             typeof(TVertex),
             typeof(WriteVertexAttributesDelegate));
     writeEdgeAttributesDelegate =
         (WriteEdgeAttributesDelegate)CreateWriteDelegate(
             typeof(TEdge),
             typeof(WriteEdgeAttributesDelegate)
             );
 }
コード例 #2
0
 static WriteDelegateCompiler()
 {
     VertexAttributesWriter =
         (WriteVertexAttributesDelegate)CreateWriteDelegate(
             typeof(TVertex),
             typeof(WriteVertexAttributesDelegate));
     EdgeAttributesWriter =
         (WriteEdgeAttributesDelegate)CreateWriteDelegate(
             typeof(TEdge),
             typeof(WriteEdgeAttributesDelegate)
             );
     GraphAttributesWriter =
         (WriteGraphAttributesDelegate)CreateWriteDelegate(
             typeof(TGraph),
             typeof(WriteGraphAttributesDelegate)
             );
 }