private static void LinkAssemblies() { if (false.Equals(true)) { #pragma warning disable IDE0067 // Dispose objects before losing scope #pragma warning disable IDE0059 // Unnecessary assignment of a value var r1 = new ColorGradientBoxRenderer(); var r2 = new EnhancedListViewRenderer(); var r3 = new HardwareKeyPageRenderer(); var r4 = new LabelRenderer(); var r5 = new PopupBaseRenderer(); var e1 = new EmbeddedResourceFontEffect(); var e2 = new PopupLayerEffect(); var e3 = new SliderStepSizeEffect(); var c1 = new ClipboardService(); var c2 = new MimeItemCollection(); var c3 = new NSDataItem(); var c4 = new LazyMimeItem(); var c5 = new SharingService(); var s1 = new ApplicationInfoService(); var s2 = new AudioService(); var s3 = new DescendentBounds(); var s4 = new FontService(); var s5 = new HapticService(); var s6 = new ToPngService(); var s7 = new KeyboardService(); var s8 = new OsInfoService(); var s9 = new PrintService(); #pragma warning restore IDE0059 // Unnecessary assignment of a value #pragma warning restore IDE0067 // Dispose objects before losing scope } }
public static NSDataItem Create(IMimeItem item) { var result = new NSDataItem(item); if (result.KeyedArchiver == null) { return(null); } return(result); }