예제 #1
0
 public static T AddFilter <T>(this T graph, IBaseFilter filter) where T : IFilterGraph
 {
     if (graph != null && filter != null)
     {
         int hr = graph.AddFilter(filter, filter.GetName());
         DSHelper.CheckHR(hr);
         return(graph);
     }
     throw new ArgumentNullException();
 }