System.Windows.Forms.DataObject.GetDataPresent(string, bool)

Here are the examples of the csharp api class System.Windows.Forms.DataObject.GetDataPresent(string, bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: duality
Source File: ConversionData.cs
View license
object IDataObject.GetData(string format, bool autoConvert)
			bool isCached = 
				this.dataCache.GetDataPresent(format, autoConvert) || 

			if (!isCached)
				object obj;
				if (, autoConvert))
					obj =, autoConvert);
				else if (
					obj =;
					obj = null;

				if (obj != null)
					this.dataCache.SetData(format, obj);

			return this.dataCache.GetData(format, autoConvert);